TypeScript/tests/baselines/reference/parserIndexSignature11.errors.txt

12 lines
447 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== 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.
}