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

20 lines
1.2 KiB
Plaintext
Raw Normal View History

tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature11.ts(2,9): error TS1169: A computed property name in an interface must directly refer to a built-in symbol.
2015-01-13 19:30:32 +01:00
tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature11.ts(2,10): error TS2304: Cannot find name 'p'.
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.
2015-01-13 19:30:32 +01:00
==== tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature11.ts (4 errors) ====
2014-07-13 01:04:16 +02:00
interface I {
2015-01-13 19:30:32 +01:00
[p]; // Used to be indexer, now it is a computed property
~~~
!!! error TS1169: A computed property name in an interface must directly refer to a built-in symbol.
2015-01-13 19:30:32 +01:00
~
!!! error TS2304: Cannot find name 'p'.
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
}