22 lines
738 B
Text
22 lines
738 B
Text
=== tests/cases/compiler/thisInStaticMethod1.ts ===
|
|
class foo {
|
|
>foo : Symbol(foo, Decl(thisInStaticMethod1.ts, 0, 0))
|
|
|
|
static x = 3;
|
|
>x : Symbol(foo.x, Decl(thisInStaticMethod1.ts, 0, 11))
|
|
|
|
static bar() {
|
|
>bar : Symbol(foo.bar, Decl(thisInStaticMethod1.ts, 1, 14))
|
|
|
|
return this.x;
|
|
>this.x : Symbol(foo.x, Decl(thisInStaticMethod1.ts, 0, 11))
|
|
>this : Symbol(foo, Decl(thisInStaticMethod1.ts, 0, 0))
|
|
>x : Symbol(foo.x, Decl(thisInStaticMethod1.ts, 0, 11))
|
|
}
|
|
}
|
|
var x = foo.bar();
|
|
>x : Symbol(x, Decl(thisInStaticMethod1.ts, 6, 3))
|
|
>foo.bar : Symbol(foo.bar, Decl(thisInStaticMethod1.ts, 1, 14))
|
|
>foo : Symbol(foo, Decl(thisInStaticMethod1.ts, 0, 0))
|
|
>bar : Symbol(foo.bar, Decl(thisInStaticMethod1.ts, 1, 14))
|
|
|