Class with prepended module is its own superclass #3276
When a class has prepended a module, the superclass is reported as itself.
module M; end class C prepend M end C.superclass # => C (in JRuby 188.8.131.52) # => Object (in MRI 2.2.3)
It looks as though we are walking up the inheritance chain and returning the first non-module we find.
The text was updated successfully, but these errors were encountered: