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

Show warning on duplicate struct keys #177

Open
kubukoz opened this issue Nov 20, 2022 · 0 comments
Open

Show warning on duplicate struct keys #177

kubukoz opened this issue Nov 20, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@kubukoz
Copy link
Owner

kubukoz commented Nov 20, 2022

Currently, duplicate keys in struct members are ignored (the choice is arbitrary, I guess the first value will be used for typechecking and so on).

It should be implemented in a consistent way (I'm thinking the last value should be used, which would allow for some possible destructuring operators in the future and so on), and a warning should be emitted on unused values (with the ability to remove them).

@kubukoz kubukoz added the enhancement New feature or request label Nov 20, 2022
@kubukoz kubukoz changed the title Show warning duplicate struct keys Show warning on duplicate struct keys Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant