9 lines
288 B
Plaintext
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'.
|
||
|
}
|