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

10 lines
805 B
Text
Raw Normal View History

2015-01-06 23:19:43 +01:00
tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName4.ts(1,15): error TS1167: Computed property names are only available when targeting ECMAScript 6 and higher.
2015-01-09 23:45:27 +01:00
tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName4.ts(1,15): error TS2378: A 'get' accessor must return a value or consist of a single 'throw' statement.
2015-01-09 23:45:27 +01:00
==== tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName4.ts (2 errors) ====
var v = { get [e]() { } };
~~~
2015-01-09 23:45:27 +01:00
!!! error TS1167: Computed property names are only available when targeting ECMAScript 6 and higher.
~~~
!!! error TS2378: A 'get' accessor must return a value or consist of a single 'throw' statement.