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

9 lines
394 B
Plaintext
Raw Normal View History

tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors5.ts(2,7): error TS1086: An accessor cannot be declared in an ambient context.
2014-07-13 01:04:16 +02:00
==== tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors5.ts (1 errors) ====
declare class C {
get foo() { return 0; }
~~~
!!! error TS1086: An accessor cannot be declared in an ambient context.
2014-07-13 01:04:16 +02:00
}