alias should not set defined_class for Modules
alias
defined_class
me->defined_class should be 0 for method entries of Modules.
me->defined_class
This patch checks this condition and fix https://github.com/ruby/ruby/pull/11965#issuecomment-2448291790
aliasshould not setdefined_classfor Modulesme->defined_classshould be 0 for method entries ofModules.
This patch checks this condition
and fix https://github.com/ruby/ruby/pull/11965#issuecomment-2448291790