inject doesn't work with procs in latest 1.6.0.dev
--------------------------------------------------
Key: JRUBY-4780
URL: http://jira.codehaus.org/browse/JRUBY-4780
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.6
Environment: Mac OS X 10.6.3
Reporter: Hans-Georg Höhne
jruby -ve "p [1,2,3,4,5].inject(&:+)"
jruby 1.6.0.dev (ruby 1.8.7 patchlevel 249) (2010-05-06 2dd322a) (Java
HotSpot(TM) 64-Bit Server VM 1.6.0_17) [x86_64-java]
-e:1:in `+': wrong # of arguments(0 for 1) (ArgumentError)
from -e:1:in `each'
from -e:1:in `inject'
from -e:1
jruby -ve "p [1,2,3,4,5].inject(&:+)"
jruby 1.4.1 (ruby 1.8.7 patchlevel 174) (2010-04-26 ea6db6a) (Java HotSpot(TM)
64-Bit Server VM 1.6.0_17) [x86_64-java]
15
jruby -ve "p [1,2,3,4,5].inject(&:+)"
jruby 1.5.0.RC3 (ruby 1.8.7 patchlevel 249) (2010-05-04 603f15a) (Java
HotSpot(TM) 64-Bit Server VM 1.6.0_17) [x86_64-java]
15
ruby -ve "p [1,2,3,4,5].inject(&:+)"
ruby 1.8.7 (2009-06-08 patchlevel 173) [universal-darwin10.0]
15
--
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