diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-01-08 07:31:45 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-01-08 07:31:45 +0000 |
commit | 459894160ec03ba01fc4c4e574480f83604ac410 (patch) | |
tree | 3eeebbb132a910a19b0e443287ba0263d1be2a3e /vm_method.c | |
parent | 759a31b4a3fbacb5a8528a3875c7f2395a2f9187 (diff) | |
download | ruby-459894160ec03ba01fc4c4e574480f83604ac410.tar.gz |
vm_method.c: fix change refined new method visibility
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_method.c')
-rw-r--r-- | vm_method.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vm_method.c b/vm_method.c index 8af2198dbd..97ae64f55d 100644 --- a/vm_method.c +++ b/vm_method.c @@ -825,7 +825,9 @@ rb_export_method(VALUE klass, ID name, rb_method_flag_t noex) me = search_method(rb_cObject, name, &defined_class); } - if (UNDEFINED_METHOD_ENTRY_P(me)) { + if (UNDEFINED_METHOD_ENTRY_P(me) || + (me->def->type == VM_METHOD_TYPE_REFINED && + UNDEFINED_METHOD_ENTRY_P(me->def->body.orig_me))) { rb_print_undef(klass, name, 0); } |