10 lines
280 B
Plaintext
10 lines
280 B
Plaintext
|
==== tests/cases/compiler/staticGetter1.ts (1 errors) ====
|
||
|
// once caused stack overflow
|
||
|
class C {
|
||
|
static get x() {
|
||
|
~
|
||
|
!!! Accessors are only available when targeting ECMAScript 5 and higher.
|
||
|
return this;
|
||
|
}
|
||
|
}
|
||
|
|