Skip to content
New issue

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

Fix compiler ppx issue when combining async and uncurried application #5856

Merged
merged 1 commit into from
Nov 27, 2022

Conversation

cristianoc
Copy link
Collaborator

Fixes #5854

The compiler ppx for async and await was propagating annotations of the body. When the body happens to be an uncurried application, the @res.app annotation was propagated to the code generated by the PPX and produced a type error (E.g. it would generate an uncurried call to the internal function unsafe_await).

Fixes #5854

The compiler ppx for `async` and `await` was propagating annotations of the body. When the body happens to be an uncurried application, the `@res.app` annotation was propagated to the code generated by the PPX and produced a type error (E.g. it would generate an uncurried call to the internal function `unsafe_await`).
@cristianoc cristianoc merged commit bd8854d into master Nov 27, 2022
@cristianoc cristianoc deleted the async_await_ppx branch November 27, 2022 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error on master with async/await and uncurried function
2 participants