diff options
author | Jean Boussier <jean.boussier@gmail.com> | 2022-08-25 09:28:07 +0200 |
---|---|---|
committer | Jean Boussier <jean.boussier@gmail.com> | 2022-08-25 17:49:50 +0200 |
commit | b2d0f788694c680d2abf695358e42d819b11b2ec (patch) | |
tree | 2a619ef569573044f02492213f0e41d08ce44a6a /vm_insnhelper.c | |
parent | c2daa056934185641469e27713daf1fbe27552c4 (diff) |
Fix private methods reported as protected when called via Symbol#to_proc
Ref: bfa6a8ddc84fffe0aef5a0f91b417167e124dbbf
Ref: [Bug #18826]
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6284
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 68362ddf60..3c41adcdc9 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -3256,6 +3256,7 @@ vm_call_symbol(rb_execution_context_t *ec, rb_control_frame_t *reg_cfp, return vm_call_method_each_type(ec, reg_cfp, calling); case METHOD_VISI_PRIVATE: vm_cc_method_missing_reason_set(cc, MISSING_PRIVATE); + break; case METHOD_VISI_PROTECTED: vm_cc_method_missing_reason_set(cc, MISSING_PROTECTED); break; |