TypeScript/tests/baselines/reference/parserIndexSignature11.errors.txt
2014-07-12 17:30:19 -07:00

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.
}