We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is similar to the already fixed case in #5754. But it still occurs in 10.1.
external ignorePromise: promise<'a> => unit = "%identity" let wrapSomethingAsync = () => ( async () => { let test = await Js.Promise.resolve("Test") Js.log(test) } )()->ignorePromise
compiles to
function wrapSomethingAsync(param) { var test = await Promise.resolve("Test"); console.log(test); }
which is invalid because the function is not marked as async.
async
The text was updated successfully, but these errors were encountered:
Fix one more case of async inline.
df1aa69
Fixes #5857
Fix two more cases of async inline.
ccf3e83
No branches or pull requests
This is similar to the already fixed case in #5754. But it still occurs in 10.1.
compiles to
which is invalid because the function is not marked as
async
.The text was updated successfully, but these errors were encountered: