TypeScript/tests/cases/conformance/dynamicImport/importCallExpressionAsyncES5AMD.ts
2017-07-26 11:48:22 -07:00

32 lines
595 B
TypeScript

// @module: amd
// @target: es5
// @lib: es6
// @filename: test.ts
export async function fn() {
const req = await import('./test') // ONE
}
export class cl1 {
public async m() {
const req = await import('./test') // TWO
}
}
export const obj = {
m: async () => {
const req = await import('./test') // THREE
}
}
export class cl2 {
public p = {
m: async () => {
const req = await import('./test') // FOUR
}
}
}
export const l = async () => {
const req = await import('./test') // FIVE
}