9 lines
No EOL
394 B
Text
9 lines
No EOL
394 B
Text
tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors5.ts(2,7): error TS1086: An accessor cannot be declared in an ambient context.
|
|
|
|
|
|
==== 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.
|
|
} |