TypeScript/tests/cases/conformance/dynamicImport/importCallExpressionInSystem1.ts
2017-06-05 17:16:29 -07:00

15 lines
No EOL
267 B
TypeScript

// @module: system
// @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");
}