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

17 lines
282 B
TypeScript
Raw Normal View History

// @module: amd
// @target: esnext
// @filename: 0.ts
export function foo() { return "foo"; }
// @filename: 1.ts
import("./0");
var p1 = import("./0");
p1.then(zero => {
return zero.foo();
});
export var p2 = import("./0");
function foo() {
const p2 = import("./0");
}