17 lines
966 B
Plaintext
17 lines
966 B
Plaintext
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.
|
|
|
|
|
|
==== tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature11.ts (3 errors) ====
|
|
interface I {
|
|
[p];
|
|
~~~
|
|
!!! error TS1169: Computed property names are not allowed in interfaces.
|
|
[p1: string];
|
|
~~~~~~~~~~~~~
|
|
!!! error TS1021: An index signature must have a type annotation.
|
|
[p2: string, p3: number];
|
|
~~
|
|
!!! error TS1096: An index signature must have exactly one parameter.
|
|
} |