10 lines
377 B
Plaintext
10 lines
377 B
Plaintext
|
==== tests/cases/compiler/staticGetterAndSetter.ts (2 errors) ====
|
||
|
class Foo {
|
||
|
static get Foo():number { return 0; }
|
||
|
~~~
|
||
|
!!! Accessors are only available when targeting ECMAScript 5 and higher.
|
||
|
static set Foo(n: number) {}
|
||
|
~~~
|
||
|
!!! Accessors are only available when targeting ECMAScript 5 and higher.
|
||
|
}
|
||
|
|