Actions
Bug #8066
closedInconsistency in ancestors chain
Description
Method including have some inconsistencies. Let's define module and include(or prepend) and then include it in classes in different order.
module M; end
Class.send :include, M
Module.send :include, M
Class.ancestors
=> [Class, M, Module, M, Object, Kernel, BasicObject]¶
module M; end
Module.send :include, M
Class.send :include, M
Class.ancestors
=> [Class, Module, M, Object, Kernel, BasicObject]¶
We see that ancestor chains are different. Is it a spec(i didn't find it in tests) or a bug?
Actions
Like0
Like0Like0Like0