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

14 lines
549 B
Plaintext
Raw Normal View History

tests/cases/compiler/objectLiteralWithGetAccessorInsideFunction.ts(3,13): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
2014-07-13 01:04:16 +02:00
==== 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.
2014-07-13 01:04:16 +02:00
var occluded = 0;
return occluded;
},
}
}