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

9 lines
288 B
Plaintext

==== 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'.
}