TypeScript/tests/baselines/reference/staticGetterAndSetter.errors.txt

10 lines
377 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== 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.
}