9 lines
No EOL
288 B
Text
9 lines
No EOL
288 B
Text
==== 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'.
|
|
} |