TypeScript/tests/baselines/reference/parserComputedPropertyName15.errors.txt
2014-11-26 20:10:49 -08:00

7 lines
464 B
Plaintext

tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName15.ts(1,31): error TS1170: Computed property names are not allowed in type literals.
==== tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName15.ts (1 errors) ====
var v: { [e: number]: string; [e]: number };
~~~
!!! error TS1170: Computed property names are not allowed in type literals.