17 lines
588 B
Plaintext
17 lines
588 B
Plaintext
==== tests/cases/conformance/parser/ecmascript5/parserOptionalTypeMembers1.ts (4 errors) ====
|
|
interface PropertyDescriptor {
|
|
configurable?: boolean;
|
|
~~~~~~~~~~~~
|
|
!!! error TS2300: Duplicate identifier 'configurable'.
|
|
enumerable?: boolean;
|
|
~~~~~~~~~~
|
|
!!! error TS2300: Duplicate identifier 'enumerable'.
|
|
value?: any;
|
|
~~~~~
|
|
!!! error TS2300: Duplicate identifier 'value'.
|
|
writable?: boolean;
|
|
~~~~~~~~
|
|
!!! error TS2300: Duplicate identifier 'writable'.
|
|
get?(): any;
|
|
set?(v: any): void;
|
|
} |