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

9 lines
288 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/fieldAndGetterWithSameName.ts (2 errors) ====
export class C {
x: number;
get x(): number { return 1; }
~
!!! Accessors are only available when targeting ECMAScript 5 and higher.
~
!!! Duplicate identifier 'x'.
}