2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/staticGetter2.ts ===
|
|
|
|
// once caused stack overflow
|
|
|
|
class C {
|
2015-04-16 01:44:20 +02:00
|
|
|
>C : C
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
static x() {
|
2015-04-16 01:44:20 +02:00
|
|
|
>x : () => typeof C
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var r = this;
|
2015-04-16 01:44:20 +02:00
|
|
|
>r : typeof C
|
|
|
|
>this : typeof C
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
return this;
|
2015-04-16 01:44:20 +02:00
|
|
|
>this : typeof C
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
}
|