multiple assignment not using to_ary on non-array elements being multiassigned
------------------------------------------------------------------------------
Key: JRUBY-1178
URL: http://jira.codehaus.org/browse/JRUBY-1178
Project: JRuby
Issue Type: Bug
Components: Interpreter
Affects Versions: JRuby 1.0.0
Reporter: Charles Oliver Nutter
Assignee: Charles Oliver Nutter
Fix For: JRuby 1.x
This is a little absurd, but it's not working correctly. Fix pending.
{noformat}
class X; def to_ary; [1, 2, 3, 4]; end; end
def test_absurd_multiple_assignment
a, (b, c, *d), (e, f), *g = 0, X.new, [5, 6], 7, 8
assert_equal([0, 1, 2, [3, 4], 5, 6, [7, 8]], [a,b,c,d,e,f,g])
end
{noformat}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email