1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
=== tests/cases/compiler/typeOfThisInStatics.ts ===
class C {
>C : Symbol(C, Decl(typeOfThisInStatics.ts, 0, 0))
static foo() {
>foo : Symbol(C.foo, Decl(typeOfThisInStatics.ts, 0, 9))
var r = this;
>r : Symbol(r, Decl(typeOfThisInStatics.ts, 2, 11))
>this : Symbol(C, Decl(typeOfThisInStatics.ts, 0, 0))
}
static get x() {
>x : Symbol(C.x, Decl(typeOfThisInStatics.ts, 3, 5))
var r = this;
>r : Symbol(r, Decl(typeOfThisInStatics.ts, 5, 11))
>this : Symbol(C, Decl(typeOfThisInStatics.ts, 0, 0))
return 1;
}
}
|