9736b7ab56 (master): Prohibit super in refined module method

0 views
Skip to first unread message

Jeremy Evans

unread,
1:39 PM (5 hours ago) 1:39 PM
to ruby...@g.ruby-lang.org
Jeremy Evans 2026-05-15 19:01:42 +0000 (Fri, 15 May 2026)

New Revision: 9736b7ab56

https://github.com/ruby/ruby/commit/9736b7ab56

Log:
Prohibit super in refined module method

Before, this super could result in a call to a method in BasicObject
(or a module included in or prepended to BasicObject), or a call
to method_missing for the receiver's class.

This explicitly disallows the use of super in such a case, with a
specific error message.

Fixes [Bug #22071]

Modified files:
test/ruby/test_refinement.rb
vm_insnhelper.c
Reply all
Reply to author
Forward
0 new messages