[Bug #17780] Fix Method#super_method for module alias Method#super_method crashes for aliased module methods because they are not defined on a class. This bug was introduced in c60aaed1856b2b6f90de0992c34771830019e021 as part of bug #17130. --- proc.c | 2 +- test/ruby/test_method.rb | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-)
Related issues
Bug #17130: Method#super_method is broken for aliased methods
Bug #17780: Backport for super_method aliases in ruby 2.7.3 causes Segfault
merge revision(s) d8a13e504992a45d52063f7c925408d7aad3595a: [Backport #17780]