Skip to content

[CS2] Fix #4577; renamed destructured parameters with same default value #4596

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

Merged

Conversation

zdenko
Copy link
Collaborator

@zdenko zdenko commented Jul 1, 2017

This PR fixes issue #4577.
Renamed destructured parameters with the same default value produced a compilation error:
multiple parameters named 0.

({ a: aa = 0, b: bb = 0 }) ->
  "#{aa}, #{bb}"

@GeoffreyBooth GeoffreyBooth merged commit 35eb58f into jashkenas:2 Jul 6, 2017
@GeoffreyBooth
Copy link
Collaborator

Great, thanks!

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.

2 participants