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

Add UnsupportedSyntax error on masgn in block params #212

Merged
merged 1 commit into from
Sep 16, 2020

Conversation

soutaro
Copy link
Owner

@soutaro soutaro commented Sep 16, 2020

While I have a plan to support this, it's not supported for now.

foo.each {|(x, y), z| ... }   # Masgn in block parameters are not supported.

foo.each {|pair, z|           # You can rewrite like this.
  x, y = pair
  ...
}

@soutaro soutaro merged commit c130543 into master Sep 16, 2020
@soutaro soutaro deleted the block-params-masgn branch September 16, 2020 14:17
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