Actions
Bug #7630
closedProc/block doesn't take keyword arguments
Description
=begin
$ ./ruby -e 'Proc.new{|k: 0|}.()'
-e:1:in block in <main>': undefined method
key?' for 70368666077121:Fixnum (NoMethodError)
$ ./ruby -e '
def m
yield
end
m{|k: 0|}
'
-e:5:in block in <main>': undefined method
key?' for nil:NilClass (NoMethodError)
$ ./ruby -e 'lambda{|k: 0|}.()'
I think Proc/block should take keyword arguments as well as lambda.
I've attached a patch.
=end
Files
Actions
Like0
Like0Like0