2014-12-18 00:35:30 +01:00
tests/cases/compiler/objectLiteralMemberWithModifiers2.ts(1,22): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
2014-12-11 08:33:30 +01:00
tests/cases/compiler/objectLiteralMemberWithModifiers2.ts(1,22): error TS2378: A 'get' accessor must return a value or consist of a single 'throw' statement.
2014-12-11 07:30:40 +01:00
2014-12-11 08:33:30 +01:00
==== tests/cases/compiler/objectLiteralMemberWithModifiers2.ts (2 errors) ====
2014-12-11 07:30:40 +01:00
var v = { public get foo() { } }
2014-12-18 00:35:30 +01:00
~~~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
2014-12-11 08:33:30 +01:00
~~~
!!! error TS2378: A 'get' accessor must return a value or consist of a single 'throw' statement.