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

16 lines
278 B
TypeScript

// @module: esnext
// @target: esnext
// @filename: 0.ts
export class B {
print() { return "I am B"}
}
// @filename: 2.ts
function foo(x: Promise<any>) {
x.then(value => {
let b = new value.B();
b.print();
})
}
foo(import("./0"));