diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2019-09-13 17:02:08 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2019-11-29 17:32:27 +0900 |
commit | 191ce5344ec42c91571f8f47c85be9138262b1c7 (patch) | |
tree | 5f9f222cc5bfe870208673ceb3eba95c7a823239 /ext | |
parent | 3a87826d0c3dd4c42e327e0cd4fb0806d898497f (diff) | |
download | ruby-191ce5344ec42c91571f8f47c85be9138262b1c7.tar.gz |
Reduce duplicated warnings for the change of Ruby 3 keyword arguments
By this change, the following code prints only one warning.
```
def foo(**opt); end
100.times { foo({kw:1}) }
```
A global variable `st_table *caller_to_callees` is a map from caller to
a set of callee methods. It remembers that a warning is already printed
for each pair of caller and callee.
[Feature #16289]
Diffstat (limited to 'ext')
0 files changed, 0 insertions, 0 deletions