swc/crates/swc_ecma_parser/tests/tsc/defaultExportInAwaitExpression01.ts

13 lines
234 B
TypeScript

// @target: ES6
// @module: umd
// @filename: a.ts
const x = new Promise( ( resolve, reject ) => { resolve( {} ); } );
export default x;
// @filename: b.ts
import x from './a';
( async function() {
const value = await x;
}() );