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

11 lines
471 B
Plaintext

tests/cases/conformance/externalModules/topLevelAwaitErrors.4.ts(4,6): error TS1262: Identifier expected. 'await' is a reserved word at the top-level of a module.
==== tests/cases/conformance/externalModules/topLevelAwaitErrors.4.ts (1 errors) ====
export {};
// reparse binding pattern as await should fail
var [await] = [1];
~~~~~
!!! error TS1262: Identifier expected. 'await' is a reserved word at the top-level of a module.