mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
19 lines
710 B
Plaintext
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.
|
|
|