TypeScript/tests/baselines/reference/staticGetterAndSetter.errors.txt
2014-09-11 16:11:08 -07:00

10 lines
405 B
Plaintext

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