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

20 lines
963 B
Plaintext

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 (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;
~~~~~
!!! error TS2300: Duplicate identifier '["a"]'.
~~~~~
!!! error TS2564: Property '["a"]' has no initializer and is not definitely assigned in the constructor.
}