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

Weird behavior of multiple assignment (cont.) #3239

Closed
naclyhara opened this issue Nov 10, 2016 · 0 comments
Closed

Weird behavior of multiple assignment (cont.) #3239

naclyhara opened this issue Nov 10, 2016 · 0 comments

Comments

@naclyhara
Copy link
Contributor

@naclyhara naclyhara commented Nov 10, 2016

Same as #3236 happens for these cases.

p [:ng, :ng, :ng]  # some random code

a,b,*c = [1]
p [a, b, c]   # [1, [[:ng, :ng, :ng]], []]
a,b,*c = [nil]
p [a, b, c]   # [nil, [[1, [[:ng, :ng, :ng]], []]], []]
a,b,*c = [[]]
p [a, b, c]   # [[], [[nil, [[1, [[:ng, :ng, :ng]], []]], []]], []]

Tested with git master (872517)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.