2015-01-09 23:45:27 +01:00
tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName4.ts(1,15): error TS2378: A 'get' accessor must return a value or consist of a single 'throw' statement.
2015-01-10 02:46:16 +01:00
tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName4.ts(1,16): error TS2304: Cannot find name 'e'.
2015-01-09 23:45:27 +01:00
2015-01-10 02:46:16 +01:00
==== tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName4.ts (2 errors) ====
2015-01-09 23:45:27 +01:00
var v = { get [e]() { } };
~~~
2015-01-10 02:46:16 +01:00
!!! error TS2378: A 'get' accessor must return a value or consist of a single 'throw' statement.
~
!!! error TS2304: Cannot find name 'e'.