TypeScript/tests/baselines/reference/objectLiteralWithGetAccessorInsideFunction.errors.txt
2014-07-12 17:30:19 -07:00

11 lines
373 B
Plaintext

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