Actions
Feature #17361
closedlambda(&block) does not warn with lazy proc allocation
Feature #17361:
lambda(&block) does not warn with lazy proc allocation
Description
In NEWS,
But the following code from https://docs.ruby-lang.org/ja/latest/method/Kernel/m/lambda.html (https://github.com/rurema/doctree/blob/495868c466c97c9bcca28d64d6ce0d68350de3e2/refm/api/src/_builtin/functions#L2436-L2441) does not warn.
Once block assign to a local variable, it warns.
Actions