10 lines
377 B
Text
10 lines
377 B
Text
|
==== 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.
|
||
|
}
|
||
|
|