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

16 lines
713 B
Plaintext
Raw Normal View History

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