55////function wrapper(wrapped: { (): void; }) { }
66////class Foo {
77//// n: number;
8+ //// prop1: th/*0*/is;
89//// public explicitThis(this: this) {
910//// wrapper(
1011//// function explicitVoid(this: void) {
2021//// console.log(th/*6*/is);
2122//// }
2223//// }
23- ////class Bar<T> {
24- //// public explicitThis(this: this) {
25- //// console.log(th/*7*/is);
26- //// }
27- //// public explicitClass(this: Bar<T>) {
28- //// console.log(thi/*8*/s);
29- //// }
30- //// }
31- ////
32- ////function implicitAny(x: number): void {
33- //// return th/*9*/is;
34- //// }
35- ////function explicitVoid(th/*10*/is: void, x: number): void {
36- //// return th/*11*/is;
37- //// }
38- ////function explicitInterface(th/*12*/is: Restricted): void {
39- //// console.log(thi/*13*/s);
40- //// }
41- ////function explicitLiteral(th/*14*/is: { n: number }): void {
42- //// console.log(th/*15*/is);
43- //// }
44- ////
45- ////interface ContextualInterface {
46- //// m: number;
47- //// method(this: this, n: number);
48- //// }
49- ////let o: ContextualInterface = {
50- //// m: 12,
51- //// method(n) {
52- //// let x = this/*16*/.m;
53- //// }
54- //// }
55- ////interface ContextualInterface2 {
56- //// (this: void, n: number): void;
57- //// }
58- ////let contextualInterface2: ContextualInterface2 = function (th/*17*/is, n) { }
5924
25+ goTo . marker ( '0' ) ;
26+ verify . quickInfoIs ( 'this: this' ) ;
6027goTo . marker ( '1' ) ;
6128verify . quickInfoIs ( 'void' ) ;
6229goTo . marker ( '2' ) ;
@@ -68,28 +35,4 @@ verify.quickInfoIs('this: Restricted');
6835goTo . marker ( '5' ) ;
6936verify . quickInfoIs ( '(parameter) this: Foo' ) ;
7037goTo . marker ( '6' ) ;
71- verify . quickInfoIs ( 'this: Foo' ) ;
72- goTo . marker ( '7' ) ;
73- verify . quickInfoIs ( 'this: this' ) ;
74- goTo . marker ( '8' ) ;
75- verify . quickInfoIs ( 'this: Bar<T>' ) ;
76- goTo . marker ( '9' ) ;
77- verify . quickInfoIs ( 'any' ) ;
78- goTo . marker ( '10' ) ;
79- verify . quickInfoIs ( '(parameter) this: void' ) ;
80- goTo . marker ( '11' ) ;
81- verify . quickInfoIs ( 'void' ) ;
82- goTo . marker ( '12' ) ;
83- verify . quickInfoIs ( '(parameter) this: Restricted' ) ;
84- goTo . marker ( '13' ) ;
85- verify . quickInfoIs ( 'this: Restricted' ) ;
86- goTo . marker ( '14' ) ;
87-
88- verify . quickInfoIs ( '(parameter) this: {\n n: number;\n}' ) ;
89- goTo . marker ( '15' ) ;
90- verify . quickInfoIs ( 'this: {\n n: number;\n}' ) ;
91-
92- goTo . marker ( '16' ) ;
93- verify . quickInfoIs ( 'this: ContextualInterface' ) ;
94- goTo . marker ( '17' ) ;
95- verify . quickInfoIs ( '(parameter) this: void' ) ;
38+ verify . quickInfoIs ( 'this: Foo' ) ;
0 commit comments