12 lines
447 B
Plaintext
12 lines
447 B
Plaintext
|
==== 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.
|
||
|
}
|