TypeScript/tests/baselines/reference/objectLiteralWithGetAccessorInsideFunction.errors.txt
2014-09-12 13:35:07 -07:00

14 lines
549 B
Plaintext

tests/cases/compiler/objectLiteralWithGetAccessorInsideFunction.ts(3,13): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
==== tests/cases/compiler/objectLiteralWithGetAccessorInsideFunction.ts (1 errors) ====
function bar() {
var x = {
get _extraOccluded() {
~~~~~~~~~~~~~~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
var occluded = 0;
return occluded;
},
}
}