mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-19 14:02:34 +01:00
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
30 lines
552 B
TypeScript
30 lines
552 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation and GitHub. All rights reserved.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
class Baz {
|
|
constructor(public readonly id: number) { }
|
|
}
|
|
|
|
function foo() {
|
|
return 42;
|
|
}
|
|
|
|
function bar() {
|
|
foo();
|
|
const arr: IBar[] = [];
|
|
for (let i = 0; i < 10; i++) {
|
|
arr.push(new Baz(i));
|
|
}
|
|
return arr;
|
|
}
|
|
|
|
function baz() {
|
|
foo();
|
|
foo();
|
|
}
|
|
|
|
interface IBar {
|
|
id: number;
|
|
}
|