rescript-compiler
rescript-compiler copied to clipboard
Parentheses incorrectly removed by printer, leading to wrong application of `@uncurry`
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).
(in uncurried mode only)
This is similar to https://github.com/rescript-lang/rescript-compiler/issues/6638