We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87230bc commit df1dd00Copy full SHA for df1dd00
tests/cases/fourslash/findAllRefsPropertyContextuallyTypedByTypeParam01.ts
@@ -0,0 +1,28 @@
1
+/// <reference path="./fourslash.ts" />
2
+
3
+////interface IFoo {
4
+//// [|a|]: string;
5
+////}
6
+////class C<T extends IFoo> {
7
+//// method() {
8
+//// var x: T = {
9
+//// [|a|]: ""
10
+//// };
11
+//// x.[|a|];
12
+//// }
13
14
+////
15
16
+////var x: IFoo = {
17
+//// [|a|]: "ss"
18
+////};
19
20
+let ranges = test.ranges()
21
+for (let range of ranges) {
22
+ goTo.position(range.start);
23
24
+ verify.referencesCountIs(ranges.length);
25
+ for (let expectedReference of ranges) {
26
+ verify.referencesAtPositionContains(expectedReference);
27
+ }
28
+}
0 commit comments