Actions
Bug #19833
closedSuperclass of BasicObject is broken.
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.3.0dev (2023-08-08T00:21:45Z master 69292676a2) [arm64-darwin22]
Description
I encountered a phenomenon where a non-class object appeared in the superclass of BasicObject.
The minimum reproduction code is below.
module Mod
end
BasicObject.include Mod
# or BasicObject.prepend Mod
p BasicObject.superclass
#=> 2431129 or false
I think it is a practical problem because I found it by running code that monitors singleton_method_added
as follows.
Actions
Like0
Like0Like0Like1Like0