mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
22 lines
922 B
Diff
22 lines
922 B
Diff
--- old.duplicateIdentifierDifferentSpelling.errors.txt
|
|
+++ new.duplicateIdentifierDifferentSpelling.errors.txt
|
|
@@= skipped -0, +0 lines =@@
|
|
-duplicateIdentifierDifferentSpelling.ts(3,3): error TS2300: Duplicate identifier '3'.
|
|
+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 (2 errors) ====
|
|
+==== duplicateIdentifierDifferentSpelling.ts (3 errors) ====
|
|
class A {
|
|
0b11 = '';
|
|
+ ~~~~
|
|
+!!! error TS2300: Duplicate identifier '0b11'.
|
|
3 = '';
|
|
~
|
|
-!!! error TS2300: Duplicate identifier '3'.
|
|
+!!! error TS2300: Duplicate identifier '0b11'.
|
|
}
|
|
|
|
var X = { 0b11: '', 3: '' };
|