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

11 lines
264 B
TypeScript

//// [topLevelAwait.2.ts]
declare namespace foo { const await: any; }
// await allowed in import=namespace when not a module
import await = foo.await;
//// [topLevelAwait.2.js]
// await allowed in import=namespace when not a module
var await = foo.await;