6 lines
199 B
Plaintext
6 lines
199 B
Plaintext
==== tests/cases/compiler/indexWithoutParamType2.ts (1 errors) ====
|
|
class C {
|
|
[x]: string
|
|
~
|
|
!!! error TS1022: An index signature parameter must have a type annotation.
|
|
} |