Actions
Bug #16640
closedSymbol#to_proc reports -1 for arity
Bug #16640:
Symbol#to_proc reports -1 for arity
Description
When you create a proc using Symbol#to_proc
syntax, it reports the arity as -1, even though the required number of arguments is actually 1. This can happen based on lambda(&:hash)
, proc(&:hash)
, or some_method(&:hash)
. Opened a PR with a fix here: https://github.com/ruby/ruby/pull/2913.
Actions