diff options
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 662a2d6456..a86861c7fc 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); |