diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-02-19 01:27:52 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-02-19 01:27:52 +0000 |
commit | 7bcd7b09cb8d586fb9cf74134ea796b86d900b75 (patch) | |
tree | c206d8f5666907abb3f3b47961d5860b0466176c /vm_insnhelper.c | |
parent | bdd3f9353b565c0cbc1324910cef76b0ccf0aef0 (diff) | |
download | ruby-7bcd7b09cb8d586fb9cf74134ea796b86d900b75.tar.gz |
vm_insnhelper.c: super to module in refinement
* vm_insnhelper.c (vm_call_zsuper): method defined in module in
refinement is not callable as-is. dispatch again.
[ruby-core:79588] [Bug #13227]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 903e6c4ab5..48a63d0089 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -2026,7 +2026,8 @@ vm_call_zsuper(rb_thread_t *th, rb_control_frame_t *cfp, struct rb_calling_info if (!cc->me) { return vm_call_method_nome(th, cfp, calling, ci, cc); } - if (cc->me->def->type == VM_METHOD_TYPE_REFINED) { + if (cc->me->def->type == VM_METHOD_TYPE_REFINED && + cc->me->def->body.refined.orig_me) { cc->me = refined_method_callable_without_refinement(cc->me); } return vm_call_method_each_type(th, cfp, calling, ci, cc); |