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

False positive unused record field in type annotation #488

Closed
simonh1000 opened this issue Aug 26, 2019 · 1 comment · Fixed by #504
Closed

False positive unused record field in type annotation #488

simonh1000 opened this issue Aug 26, 2019 · 1 comment · Fixed by #504
Labels

Comments

@simonh1000
Copy link

Note how currentLocation is being used in last line, but is coloured as unused

image

@klazuka klazuka changed the title Colouring bug in extended records False positive unused record field in type annotation Aug 26, 2019
@klazuka klazuka added the bug label Aug 26, 2019
@klazuka
Copy link
Collaborator

klazuka commented Aug 26, 2019

Due to some complications with record destructuring, we are unable to detect unused record fields in this specific case. We need to suppress the inspection like we do for destructured parameters in a function declaration.

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

Successfully merging a pull request may close this issue.

2 participants