12 lines
No EOL
447 B
Text
12 lines
No EOL
447 B
Text
==== tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature11.ts (3 errors) ====
|
|
interface I {
|
|
[p];
|
|
~
|
|
!!! An index signature parameter must have a type annotation.
|
|
[p1: string];
|
|
~~~~~~~~~~~~
|
|
!!! An index signature must have a type annotation.
|
|
[p2: string, p3: number];
|
|
~~
|
|
!!! An index signature must have exactly one parameter.
|
|
} |