Return the correct value from mass-assignment expressions #2322

Merged
merged 3 commits into from Apr 30, 2013

Conversation

Projects
None yet
2 participants
Member

leocassarani commented Apr 29, 2013

This pull request makes Rubinius compliant with MRI (and JRuby) with regards to the return value of mass-assignment expressions.

Previously:

>> a, b = 1, 2
=> true

Now:

>> a, b = 1, 2
=> [1, 2]

leocassarani added some commits Apr 29, 2013

Update specs to make Rubinius compliant with masgn_spec return value
Previously, Rubinius was explicitly non-compliant with regards to the
return values of mass-assignment expressions, always returning true
instead.

dbussink added a commit that referenced this pull request Apr 30, 2013

Merge pull request #2322 from leocassarani/masgn
Return the correct value from mass-assignment expressions

@dbussink dbussink merged commit b43df81 into rubinius:master Apr 30, 2013

1 check passed

default The Travis build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment