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