TypeScript/tests/baselines/reference/parserComputedPropertyName5.errors.txt
2015-01-19 16:36:36 -08:00

7 lines
No EOL
484 B
Text

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.
==== tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName5.ts (1 errors) ====
var v = { public get [e]() { } };
~~~
!!! error TS2378: A 'get' accessor must return a value or consist of a single 'throw' statement.