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

13 lines
239 B
TypeScript
Raw Normal View History

// @target: ES6
// @module: commonjs
// @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;
}() );