Project

General

Profile

« Previous | Next » 

Revision e9d7478d

Added by ko1 (Koichi Sasada) over 1 year ago

relax unused block warning for duck typing

if a method foo uses a block, other (unrelated) method foo
can receives a block. So try to relax the unused block warning
condition.

 class C0 def f = yield end class C1 < C0 def f = nil end [C0, C1].f{ block } # do not warn