Closed
Description
Repro
let f = async (type a, ()) => {
await Js.Promise.resolve(())
}
causes the error:
Await on expression not in an async context
Workaround
Make the function explicitly curried and move the async specifier after the locally abstract type.
let f = (type a) => async () => {
await Js.Promise.resolve(())
}
Metadata
Metadata
Assignees
Labels
No labels