Actions
Bug #21003
closedunexpected warning about ignored block
Description
I stumbled upon this during the upgrade to 3.4. Here's the minimal repro:
$VERBOSE = true
def foo(*, &block) = block
def bar(buz, ...) = foo(buz, ...)
bar(:test) {}
It gives
ruby reproduce.rb
reproduce.rb:6: warning: the block passed to 'Object#bar' defined at reproduce.rb:4 may be ignored
where I believe it shouldn't. No warning reported if I change def bar(buz, ...)
to def bar(...)
.
Actions
Like0
Like0Like0Like0Like0