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

Handle nested destructuring/multiple assignment #1113

Merged
merged 1 commit into from Oct 28, 2017

Conversation

Projects
None yet
1 participant
@presidentbeef
Owner

presidentbeef commented Oct 28, 2017

For example:

   x = [:a, [0, 1], :b, :c]
   a, (x, y), b, c = x
   a
   b
   c
   x
   y

will be interpreted as

   x = [:a, [0, 1], :b, :c]
   a, (x, y), b, c = [:a, [0, 1], :b, :c]
   :a
   :b
   :c
   0
   1

@presidentbeef presidentbeef merged commit 95c0687 into master Oct 28, 2017

2 checks passed

ci/circleci Your tests passed on CircleCI!
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

@presidentbeef presidentbeef deleted the nested_masgn branch Oct 28, 2017

Repository owner locked and limited conversation to collaborators Nov 20, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.