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

9 lines
442 B
Plaintext
Raw Normal View History

2015-01-06 23:19:43 +01:00
tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName35.ts(2,6): error TS1171: A comma expression is not allowed in a computed property name.
2014-11-27 05:10:49 +01:00
==== tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName35.ts (1 errors) ====
var x = {
[0, 1]: { }
2015-01-06 23:19:43 +01:00
~~~~
!!! error TS1171: A comma expression is not allowed in a computed property name.
2014-11-27 05:10:49 +01:00
}