TypeScript/tests/cases/conformance/externalModules/topLevelAwaitErrors.10.ts
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

11 lines
238 B
TypeScript

// @target: esnext
// @module: esnext
// @filename: index.ts
// await disallowed in alias of named import
import { await as await } from "./other";
// @filename: other.ts
declare const _await: any;
export { _await as await };