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

17 lines
966 B
Text
Raw Normal View History

2014-11-27 05:10:49 +01:00
tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature11.ts(2,9): error TS1169: Computed property names are not allowed in interfaces.
tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature11.ts(3,9): error TS1021: An index signature must have a type annotation.
tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature11.ts(4,10): error TS1096: An index signature must have exactly one parameter.
2014-07-13 01:04:16 +02:00
==== tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature11.ts (3 errors) ====
interface I {
[p];
~~~
2014-11-27 05:10:49 +01:00
!!! error TS1169: Computed property names are not allowed in interfaces.
2014-07-13 01:04:16 +02:00
[p1: string];
~~~~~~~~~~~~~
!!! error TS1021: An index signature must have a type annotation.
2014-07-13 01:04:16 +02:00
[p2: string, p3: number];
~~
!!! error TS1096: An index signature must have exactly one parameter.
2014-07-13 01:04:16 +02:00
}