[ruby-core:77672] [Ruby trunk Bug#12854] Proc#curry should return an instance of the class, not Proc

From: ryand-ruby@...
Date: 2016-10-19 23:44:45 UTC
List: ruby-core #77672
Issue #12854 has been reported by Ryan Davis.

----------------------------------------
Bug #12854: Proc#curry should return an instance of the class, not Proc
https://bugs.ruby-lang.org/issues/12854

* Author: Ryan Davis
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: 
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
~~~ ruby
class ChainedProc < Proc
end

ChainedProc.new { |x, y, z| 42 }.curry.class # => Proc
~~~




-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next