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

7 lines
351 B
Text
Raw Normal View History

2015-05-07 02:33:58 +02:00
tests/cases/conformance/async/es6/asyncDeclare_es6.ts(1,9): error TS1040: 'async' modifier cannot be used in an ambient context.
==== tests/cases/conformance/async/es6/asyncDeclare_es6.ts (1 errors) ====
declare async function foo(): Promise<void>;
~~~~~
!!! error TS1040: 'async' modifier cannot be used in an ambient context.