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

31 lines
587 B
TypeScript
Raw Normal View History

2019-12-21 01:29:49 +01:00
// @module: es2020
// @target: es2020
2017-07-26 20:48:22 +02:00
// @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
}