mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Make proc/Proc.new without block an error instead of warning
The warning for these was added in 2.7.
This commit is contained in:
parent
f48fce4981
commit
f3e927b0cc
Notes:
git
2020-06-11 09:50:16 +09:00
6 changed files with 11 additions and 63 deletions
|
@ -48,7 +48,7 @@ describe "Kernel#proc" do
|
|||
end
|
||||
end
|
||||
|
||||
ruby_version_is "2.7" do
|
||||
ruby_version_is "2.7" ... "2.8" do
|
||||
it "can be created when called with no block" do
|
||||
def some_method
|
||||
proc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue