mirror of
https://github.com/ruby/ruby.git
synced 2025-09-16 09:04:05 +02:00
merge revision(s) 49322: [Backport #10753]
* vm_method.c (check_definition): Module#public_method_defined?, Module#private_method_defined?, Module#protected_method_defined? should not use refinements. [ruby-core:67656] [Bug #10753] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@49409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b5e22aa1d6
commit
353dce4aa1
4 changed files with 85 additions and 4 deletions
|
@ -1063,7 +1063,7 @@ check_definition(VALUE mod, VALUE mid, rb_method_flag_t noex)
|
|||
const rb_method_entry_t *me;
|
||||
ID id = rb_check_id(&mid);
|
||||
if (!id) return Qfalse;
|
||||
me = rb_method_entry(mod, id, 0);
|
||||
me = rb_method_entry_without_refinements(mod, id, 0);
|
||||
if (me) {
|
||||
if (VISI_CHECK(me->flag, noex))
|
||||
return Qtrue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue