TypeScript/tests/baselines/reference/thisInStaticMethod1.types
2014-08-15 14:37:48 -07:00

24 lines
350 B
Plaintext

=== tests/cases/compiler/thisInStaticMethod1.ts ===
class foo {
>foo : foo
static x = 3;
>x : number
static bar() {
>bar : () => number
return this.x;
>this.x : number
>this : typeof foo
>x : number
}
}
var x = foo.bar();
>x : number
>foo.bar() : number
>foo.bar : () => number
>foo : typeof foo
>bar : () => number