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

9 lines
416 B
Plaintext
Raw Normal View History

2015-02-07 06:30:51 +01:00
tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolIndexer1.ts(2,6): error TS1023: An index signature parameter type must be 'string' or 'number'.
2015-01-26 23:34:22 +01:00
2015-02-04 00:52:06 +01:00
==== tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolIndexer1.ts (1 errors) ====
2015-01-26 23:34:22 +01:00
interface I {
2015-02-04 00:52:06 +01:00
[s: symbol]: string;
2015-02-07 06:30:51 +01:00
~
!!! error TS1023: An index signature parameter type must be 'string' or 'number'.
2015-01-26 23:34:22 +01:00
}