Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/copilot/test/scenarios/test-current-selection-impls/test.ts
13397 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation and GitHub. All rights reserved.
3
*--------------------------------------------------------------------------------------------*/
4
5
class Baz {
6
constructor(public readonly id: number) { }
7
}
8
9
function foo() {
10
return 42;
11
}
12
13
function bar() {
14
foo();
15
const arr: IBar[] = [];
16
for (let i = 0; i < 10; i++) {
17
arr.push(new Baz(i));
18
}
19
return arr;
20
}
21
22
function baz() {
23
foo();
24
foo();
25
}
26
27
interface IBar {
28
id: number;
29
}
30
31