summaryrefslogtreecommitdiff
path: root/NEWS.md
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2022-04-05 11:54:57 +0200
committerBenoit Daloze <eregontp@gmail.com>2022-04-05 11:54:57 +0200
commit573005983af9d3d1cfd3ad7251dad9855f3be552 (patch)
treedf22c27b42bd3dcd60a228e53115292ef4d2a27d /NEWS.md
parentd3f659d3f94cc8cf8315e11f5d38b4c62c7f24ae (diff)
downloadruby-573005983af9d3d1cfd3ad7251dad9855f3be552.tar.gz
Give some tips on how to find the missing ruby2_keywords
Diffstat (limited to 'NEWS.md')
-rw-r--r--NEWS.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/NEWS.md b/NEWS.md
index b1a5791c84..9ca641c67e 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -66,7 +66,11 @@ Note that each entry is kept to a minimum, see links for details.
with no exception. This will make it easier to transition to other ways of
delegation once a library can require Ruby 3+. Previously, the `ruby2_keywords`
flag was kept if the receiving method took `*args`, but this was a bug and an
- inconsistency. [[Bug #18625]] [[Bug #16466]]
+ inconsistency. A good technique to find the potentially-missing `ruby2_keywords`
+ is to run the test suite, for where it fails find the last method which must
+ receive keyword arguments, use `puts nil, caller, nil` there, and check each
+ method/block on the call chain which must delegate keywords is correctly marked
+ as `ruby2_keywords`. [[Bug #18625]] [[Bug #16466]]
```ruby
def target(**kw)