Issue #7630 has been reported by ktsj (Kazuki Tsujimoto).

----------------------------------------
Bug #7630: Proc/block doesn't take keyword arguments
https://bugs.ruby-lang.org/issues/7630

Author: ktsj (Kazuki Tsujimoto)
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-12-28 trunk 38642) [x86_64-linux]


=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



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