Skip to content

Commit 8aa56c1

Browse files
committed
Add fourslash test for contextually-typed this
Regression test for #10972
1 parent df58df1 commit 8aa56c1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/// <reference path='fourslash.ts'/>
2+
////interface A {
3+
//// a: string;
4+
////}
5+
////declare function ctx(callback: (this: A) => string): string;
6+
////ctx(function () { return th/*1*/is./*2*/a });
7+
8+
goTo.marker('1');
9+
verify.quickInfoIs("this: A");
10+
goTo.marker('2');
11+
verify.memberListContains('a', '(property) A.a: string');
12+

0 commit comments

Comments
 (0)