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

15 lines
708 B
Plaintext

==== tests/cases/conformance/expressions/objectLiterals/objectLiteralErrorsES3.ts (4 errors) ====
var e1 = { get a() { return 4; } };
~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
var e2 = { set a(n) { } };
~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
var e3 = { get a() { return ''; }, set a(n) { } };
~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.