diff options
-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 1fc6a7c12c..a7cb6f66a9 100644 --- a/vm_method.c +++ b/vm_method.c @@ -1301,7 +1301,7 @@ check_definition_visibility(VALUE mod, int argc, VALUE *argv) me = rb_method_entry_without_refinements(lookup_mod, id, NULL); if (me) { - if (!inc_super && me->owner != mod) return METHOD_VISI_UNDEF; + if (!inc_super && me->owner != mod) return METHOD_VISI_UNDEF; return METHOD_ENTRY_VISI(me); } return METHOD_VISI_UNDEF; |