TypeScript/tests/baselines/reference/staticGetter2.types

17 lines
456 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/staticGetter2.ts ===
// once caused stack overflow
class C {
2015-04-13 23:01:57 +02:00
>C : C, Symbol(C, Decl(staticGetter2.ts, 0, 0))
2014-08-15 23:33:16 +02:00
static x() {
2015-04-13 23:01:57 +02:00
>x : () => typeof C, Symbol(C.x, Decl(staticGetter2.ts, 1, 9))
2014-08-15 23:33:16 +02:00
var r = this;
2015-04-13 23:01:57 +02:00
>r : typeof C, Symbol(r, Decl(staticGetter2.ts, 3, 11))
>this : typeof C, Symbol(C, Decl(staticGetter2.ts, 0, 0))
2014-08-15 23:33:16 +02:00
return this;
2015-04-13 23:01:57 +02:00
>this : typeof C, Symbol(C, Decl(staticGetter2.ts, 0, 0))
2014-08-15 23:33:16 +02:00
}
}