Closed
Description
TypeScript Version: 3.8.1-rc
Search Terms:
Code
// works:
const DBService = await import('./DBService')
await DBService.start()
// doesn't work
await (await import('./DBService')).start()
await (1 + 1)
// works:
async function foo() {
await (await import('./DBService')).start()
}
export {}
Expected behavior:
no error on the await
word
Actual behavior:
TS thinks it is an identifier.
Playground Link:
Related Issues: