17 lines
248 B
Text
17 lines
248 B
Text
|
=== tests/cases/compiler/staticGetter2.ts ===
|
||
|
// once caused stack overflow
|
||
|
class C {
|
||
|
>C : C
|
||
|
|
||
|
static x() {
|
||
|
>x : () => typeof C
|
||
|
|
||
|
var r = this;
|
||
|
>r : typeof C
|
||
|
>this : typeof C
|
||
|
|
||
|
return this;
|
||
|
>this : typeof C
|
||
|
}
|
||
|
}
|