[1.8.7] Blocks should be able to receive block arguments
--------------------------------------------------------

                 Key: JRUBY-4180
                 URL: http://jira.codehaus.org/browse/JRUBY-4180
             Project: JRuby
          Issue Type: Bug
          Components: Compiler, Interpreter, Parser, Ruby 1.8.7
    Affects Versions: JRuby 1.4
            Reporter: Charles Oliver Nutter


Surprising...but it's in the 1.8.7 tests:

{noformat}
~/projects/jruby ➔ ruby1.8.7 -v -e "Proc.new {|&b| puts b.call}.call 
{'hello'}"
ruby 1.8.7 (2009-09-11 patchlevel 202) [i686-darwin9.8.0]
hello

~/projects/jruby ➔ jruby -v -e "Proc.new {|&b| puts b.call}.call 
{'hello'}"
jruby 1.5.0.dev (ruby 1.8.7 patchlevel 174) (2009-10-29 e82cf63) (Java 
HotSpot(TM) Client VM 1.5.0_20) [i386-java]
:1: -e:1: , unexpected tAMPER (SyntaxError)

Proc.new {|&b| puts b.call}.call {'hello'}
            ^
{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


Reply via email to