YABAB - Yet Another Block Argument Bug
--------------------------------------

                 Key: JRUBY-1331
                 URL: http://jira.codehaus.org/browse/JRUBY-1331
             Project: JRuby
          Issue Type: Bug
          Components: Compiler, Interpreter
    Affects Versions: JRuby 1.0.1
            Reporter: Thomas E Enebo
             Fix For: JRuby 1.0.2, JRuby 1.1.0


{noformat}
def foo(&block)
  block.call([1, 2, 3])
end

foo { |a, b, c| p a }
{noformat}

Should print '1' but a is getting bound to [1,2,3]

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