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

15 lines
539 B
Plaintext
Raw Normal View History

tests/cases/compiler/declFileObjectLiteralWithOnlyGetter.ts(4,13): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/declFileObjectLiteralWithOnlyGetter.ts (1 errors) ====
function /*1*/makePoint(x: number) {
return {
get x() { return x; },
~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
2014-07-13 01:04:16 +02:00
};
};
var /*4*/point = makePoint(2);
var /*2*/x = point./*3*/x;