TypeScript/tests/baselines/reference/topLevelAwaitErrors.8.errors.txt
Ron Buckton fe33e61823
Reparse top level 'await' in modules (#39084)
* Reparse top-level 'await' in modules

* Add more tests and additional diagnostics

* One more incremental parse test
2020-06-18 23:43:18 -07:00

13 lines
556 B
Plaintext

tests/cases/conformance/externalModules/index.ts(2,8): error TS1262: Identifier expected. 'await' is a reserved word at the top-level of a module.
==== tests/cases/conformance/externalModules/index.ts (1 errors) ====
// await disallowed in default import
import await from "./other";
~~~~~
!!! error TS1262: Identifier expected. 'await' is a reserved word at the top-level of a module.
==== tests/cases/conformance/externalModules/other.ts (0 errors) ====
declare const _await: any;
export default _await;