Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.7.0.pre1
-
Fix Version/s: JRuby 1.7.0.pre2
-
Component/s: Interpreter
-
Labels:None
-
Environment:jruby 1.7.0.preview1 (ruby-1.9.3-p203) (2012-05-19 00c8c98) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_33) [darwin-x86_64-java]
-
Number of attachments :
Description
Sorry if this is already fixed in trunk. Is there an easy way to build the trunk version with Homebrew?
def f
yield([0], *[])
end
f
{ |x| p x }# x should be [0] instead of 0
$ jruby --1.9 -v bug.rb
jruby 1.7.0.preview1 (ruby-1.9.3-p203) (2012-05-19 00c8c98) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_33) [darwin-x86_64-java]
0
$ ruby -v bug.rb
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin10.8.0]
[0]
$ rbx -X19 -v bug.rb
rubinius 2.0.0dev (1.9.3 release yyyy-mm-dd JI) [x86_64-apple-darwin10.8.0]
[0]
Doh, sorry for misleading
s/lambda/block/
I meant block here.