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