diff options
author | NARUSE, Yui <naruse@airemix.jp> | 2021-02-02 00:14:24 +0900 |
---|---|---|
committer | NARUSE, Yui <naruse@airemix.jp> | 2021-02-02 15:47:50 +0900 |
commit | 7899046315321f78fa95ef92f313afa86f4d962b (patch) | |
tree | af7813f067f7360648d717c3107665e3d3019986 /vm_method.c | |
parent | 1d1f07cea04843677877b477fa61b1712d1f0a5c (diff) |
merge revision(s) eeacdcb9a073c7d8ad703e0dc9faf229a5ebbe3c: [Backport #17558]
Fixed premature return
After setting ruby2_keywords for bmethod, the rest of arguments
had been ignored. [Bug #17558]
---
test/ruby/test_keyword.rb | 9 +++++++++
vm_method.c | 2 +-
2 files changed, 10 insertions(+), 1 deletion(-)
Diffstat (limited to 'vm_method.c')
-rw-r--r-- | vm_method.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_method.c b/vm_method.c index e77f0a9678..e545146df9 100644 --- a/vm_method.c +++ b/vm_method.c @@ -2198,7 +2198,7 @@ rb_mod_ruby2_keywords(int argc, VALUE *argv, VALUE module) else { rb_warn("Skipping set of ruby2_keywords flag for %s (method accepts keywords or method does not accept argument splat)", rb_id2name(name)); } - return Qnil; + break; } } /* fallthrough */ |