unexpected ArgumentError in curried Proc #2951

headius opened this Issue Feb 22, 2014 · 1 comment


None yet
2 participants

headius commented Feb 22, 2014

This issue is copied from jruby/jruby#1523 and reported here as a courtesy since JRuby and Rubinius share the same Proc#curry implementation. The fix there should apply to Rubinius as well.

This Travis run shows an unexpected ArgumentError in Proc#call after sequential calls to #curry and #call

Effective code is:

l = lambda{|a,b,c| a+b+c }
l1 = l.curry.call(1)
l2 = l1.curry.call(2)
l2.curry.call(3) #=> 6
l1.curry.call(2,3) #=> ArgumentError

YorickPeterse commented Feb 18, 2015

Still occurs as of 4417909.

@tak1n tak1n closed this in e5def49 May 25, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment