TypeScript/tests/cases/conformance/dynamicImport/importCallExpressionES5System.ts

30 lines
483 B
TypeScript
Raw Normal View History

// @module: system
// @target: es5
// @lib: es6
// @filename: 0.ts
export function foo() { return "foo"; }
// @filename: 1.ts
import("./0");
var p1 = import("./0");
p1.then(zero => {
return zero.foo();
});
2017-07-12 22:01:56 +02:00
export var p2 = import("./0");
function foo() {
const p2 = import("./0");
2017-07-12 20:42:21 +02:00
}
class C {
method() {
const loadAsync = import ("./0");
}
2017-07-12 22:01:56 +02:00
}
export class D {
method() {
const loadAsync = import ("./0");
}
}