summaryrefslogtreecommitdiff
path: root/test/logger
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2024-04-17 19:46:48 +0900
committerKoichi Sasada <ko1@atdot.net>2024-04-17 20:26:49 +0900
commite9d7478dedbd2b57530bc17efe8a9db9b8b2f280 (patch)
treec41d4f58e25d3ca4532a60247c6019f6df767300 /test/logger
parent6ade36c06b7cef948099b8f5f483763498705d12 (diff)
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. ```ruby class C0 def f = yield end class C1 < C0 def f = nil end [C0, C1].f{ block } # do not warn ```
Diffstat (limited to 'test/logger')
0 files changed, 0 insertions, 0 deletions