mirror of
https://github.com/swc-project/swc.git
synced 2024-12-28 08:04:43 +03:00
15 lines
249 B
TypeScript
15 lines
249 B
TypeScript
// @module: es2015
|
|
// @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();
|
|
})
|
|
|
|
function foo() {
|
|
const p2 = import("./0");
|
|
} |