TypeScript/tests/baselines/reference/topLevelAwaitErrors.7(module=esnext).errors.txt
Kagami Sascha Rosylight 2161e1852f
Add module: es2022 (#44656)
Closes #44653
2021-09-29 17:44:57 -07:00

13 lines
574 B
Plaintext

tests/cases/conformance/externalModules/index.ts(2,13): 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 namespace import
import * as 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 { _await as await };