Skip to content

Inlay hint incorrectly shows type of first binding of destructured record for entire record #536

Closed
@Minnozz

Description

@Minnozz

Pre-release version 1.5.11.

type foo = {
  a: int,
  b: bool,
}

let bar = () => ({a: 0, b: true}, "123")

let ({a, b}, _) = bar()

inlay-hint-bug

To me, this incorrectly suggests {a, b} has type int.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions