Skip to content

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

Open
@cknitt

Description

@cknitt

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).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions