swc/crates/swc_ecma_parser/tests/tsc/topLevelAwait.2.ts

8 lines
172 B
TypeScript
Raw Normal View History

// @target: esnext
// @module: es2022,esnext
declare namespace foo { const await: any; }
// await allowed in import=namespace when not a module
import await = foo.await;