Files
tsgo/testdata/baselines/reference/submodule/compiler/duplicateIdentifierDifferentSpelling.errors.txt

19 lines
710 B
Plaintext

duplicateIdentifierDifferentSpelling.ts(2,3): error TS2300: Duplicate identifier '0b11'.
duplicateIdentifierDifferentSpelling.ts(3,3): error TS2300: Duplicate identifier '0b11'.
duplicateIdentifierDifferentSpelling.ts(6,21): error TS1117: An object literal cannot have multiple properties with the same name.
==== duplicateIdentifierDifferentSpelling.ts (3 errors) ====
class A {
0b11 = '';
~~~~
!!! error TS2300: Duplicate identifier '0b11'.
3 = '';
~
!!! error TS2300: Duplicate identifier '0b11'.
}
var X = { 0b11: '', 3: '' };
~
!!! error TS1117: An object literal cannot have multiple properties with the same name.