Files
tsgo/testdata/baselines/reference/submoduleAccepted/compiler/duplicateIdentifierComputedName.errors.txt.diff

18 lines
952 B
Diff

--- old.duplicateIdentifierComputedName.errors.txt
+++ new.duplicateIdentifierComputedName.errors.txt
@@= skipped -0, +0 lines =@@
+duplicateIdentifierComputedName.ts(2,5): error TS2300: Duplicate identifier '["a"]'.
duplicateIdentifierComputedName.ts(2,5): error TS2564: Property '["a"]' has no initializer and is not definitely assigned in the constructor.
duplicateIdentifierComputedName.ts(3,5): error TS2300: Duplicate identifier '["a"]'.
duplicateIdentifierComputedName.ts(3,5): error TS2564: Property '["a"]' has no initializer and is not definitely assigned in the constructor.
-==== duplicateIdentifierComputedName.ts (3 errors) ====
+==== duplicateIdentifierComputedName.ts (4 errors) ====
class C {
["a"]: string;
+ ~~~~~
+!!! error TS2300: Duplicate identifier '["a"]'.
~~~~~
!!! error TS2564: Property '["a"]' has no initializer and is not definitely assigned in the constructor.
["a"]: string;