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

9 lines
444 B
Plaintext
Raw Normal View History

2014-12-11 08:33:30 +01:00
tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors10.ts(2,14): error TS2378: A 'get' accessor must return a value or consist of a single 'throw' statement.
==== tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors10.ts (1 errors) ====
2014-07-13 01:04:16 +02:00
var v = {
public get foo() { }
~~~
2014-12-11 08:33:30 +01:00
!!! error TS2378: A 'get' accessor must return a value or consist of a single 'throw' statement.
2014-07-13 01:04:16 +02:00
};