TypeScript/tests/baselines/reference/parserAccessors1.errors.txt
2014-09-11 16:11:08 -07:00

6 lines
253 B
Plaintext

==== tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors1.ts (1 errors) ====
class C {
get Foo() { }
~~~
!!! error TS2378: A 'get' accessor must return a value or consist of a single 'throw' statement.
}