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

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

Closed
Minnozz opened this issue Aug 1, 2022 · 1 comment · Fixed by #540

Comments

@Minnozz
Copy link
Contributor

Minnozz commented Aug 1, 2022

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.

@cristianoc
Copy link
Collaborator

CC @aspeddro

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

Successfully merging a pull request may close this issue.

2 participants