TypeScript/tests/baselines/reference/staticGetter2.types

17 lines
248 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 {
>C : C
2014-08-15 23:33:16 +02:00
static x() {
>x : () => typeof C
2014-08-15 23:33:16 +02:00
var r = this;
>r : typeof C
>this : typeof C
2014-08-15 23:33:16 +02:00
return this;
>this : typeof C
2014-08-15 23:33:16 +02:00
}
}