Skip to content

Warn on duplicated key with **hash only - #4214

Open
kddnewton wants to merge 1 commit into
mainfrom
splt
Open

Warn on duplicated key with **hash only#4214
kddnewton wants to merge 1 commit into
mainfrom
splt

Conversation

@kddnewton

Copy link
Copy Markdown
Collaborator

Previously we were just checking the token, which meant something like { a: 1, **{a: 2}.select { false } } would warn. As esoteric as this is, it was possible. This also happily gets rid of the current_hash_keys field on parser, making it just a tad bit slimmer.

Previously we were just checking the token, which meant something
like `{ a: 1, **{a: 2}.select { false } }` would warn. As esoteric
as this is, it was possible. This also happily gets rid of the
current_hash_keys field on parser, making it just a tad bit slimmer.
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 this pull request may close these issues.

1 participant