TypeScript/tests/baselines/reference/parserIndexSignature5.errors.txt
2015-02-06 21:32:16 -08:00

12 lines
677 B
Plaintext

tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature5.ts(2,3): error TS1169: A computed property name in an interface must directly refer to a built-in symbol.
tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature5.ts(2,4): error TS2304: Cannot find name 'a'.
==== tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature5.ts (2 errors) ====
interface I {
[a] // 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.
~
!!! error TS2304: Cannot find name 'a'.
}