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

20 lines
723 B
Plaintext
Raw Normal View History

tests/cases/compiler/commentOnClassAccessor2.ts(5,7): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
tests/cases/compiler/commentOnClassAccessor2.ts(10,7): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/commentOnClassAccessor2.ts (2 errors) ====
class C {
/**
* Getter.
*/
get bar(): number { return 1;}
~~~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
2014-07-13 01:04:16 +02:00
/**
* Setter.
*/
set bar(v) { }
~~~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
2014-07-13 01:04:16 +02:00
}