Issue #9299 has been updated by Yui NARUSE.

Status changed from Feedback to Closed
% Done changed from 0 to 100

Applied in changeset r45226.

----------
merge revision(s) 44433: [Backport #9299]

	* proc.c: Having any mandatory keyword argument increases min arity
	  [#9299]

----------------------------------------
Backport #9299: Required keyowrd arguments and arity
https://bugs.ruby-lang.org/issues/9299#change-45531

* Author: Marc-Andre Lafortune
* Status: Closed
* Priority: Normal
* Assignee: Yukihiro Matsumoto
----------------------------------------
While fixing #8072, I noticed another bug: a required keyword argument should add 1 to the arity:

    proc{|required:|}.arity # => 0, should be 1



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