Parentheses in block arguments are ignored
------------------------------------------

                 Key: JRUBY-3701
                 URL: http://jira.codehaus.org/browse/JRUBY-3701
             Project: JRuby
          Issue Type: Bug
          Components: Parser
    Affects Versions: JRuby 1.3RC1
            Reporter: Thomas B.
            Assignee: Thomas E Enebo


This expression
{{[[1,2],[5,6]].each_with_index{|(a,b),i| p [a,b,i]}}}
should produce
{{[1, 2, 0]}}
{{[5, 6, 1]}}
both on 1.8 and 1.9, but in JRuby it produces
{{[1, 0, nil]}}
{{[5, 1, nil]}}


-- 
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


Reply via email to