Skip to content

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

Closed

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

Activity

  1. cknitt commented on May 27, 2024

    @cknitt
    MemberAuthor

    (in uncurried mode only)

  2. shulhi commented on Aug 16, 2024

    @shulhi
    Member

    This is similar to #6638

  3. added this to the v12 milestone on Aug 25, 2024
  4. self-assigned this
    on Sep 1, 2024
  5. zth commented on Jul 2, 2025

    @zth
    Member

    Should we close this @cknitt ? Everything should be uncurried in v12, right?

  6. cknitt commented on Jul 3, 2025

    @cknitt
    MemberAuthor

    I just retested, and it turns out this behavior is already fixed since 12.0.0-alpha.4. 🎉

  7. added theissue type on Jul 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions