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

Parentheses incorrectly removed by printer, leading to wrong application of @uncurry #6784

Open
cknitt opened this issue May 26, 2024 · 2 comments
Labels

Comments

@cknitt
Copy link
Member

cknitt commented May 26, 2024

Example from rescript-webapi:

@val external queueMicrotask: (@uncurry (unit => unit)) => unit = "queueMicrotask"

is reformatted to

@val external queueMicrotask: (@uncurry unit => unit) => unit = "queueMicrotask"

which applies @uncurry incorrectly (giving an "unused attribute" warning in v12/master after I fixed the unused attribute checks in #6643).

@cknitt cknitt added the bug label May 26, 2024
@cknitt
Copy link
Member Author

cknitt commented May 27, 2024

(in uncurried mode only)

@shulhi
Copy link
Collaborator

shulhi commented Aug 16, 2024

This is similar to #6638

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants