2015-01-09 23:45:27 +01:00
tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName5.ts(1,22): 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/parserComputedPropertyName5.ts(1,23): 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/parserComputedPropertyName5.ts (2 errors) ====
2015-01-09 23:45:27 +01:00
var v = { public 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'.