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

12 lines
280 B
Plaintext

=== tests/cases/conformance/externalModules/topLevelAwait.2.ts ===
declare namespace foo { const await: any; }
>foo : typeof foo
>await : any
// await allowed in import=namespace when not a module
import await = foo.await;
>await : any
>foo : typeof foo
>await : any