Actions
Bug #12594
closedThe class does not inherit from a module the modules that were included after the inclusion
Description
Reproduced in ruby 2.3.0 and 2.3.1
You can see that the result changes if I swap places LimitedPeriod.include Period
and Period.include Serialization
.
module Serialization
end
module Period
end
Period.include Serialization
class LimitedPeriod
include Period
end
LimitedPeriod < Serialization
# => true
module Serialization
end
module Period
end
class LimitedPeriod
include Period
end
Period.include Serialization
LimitedPeriod < Serialization
# => false
Updated by faucct (Nikita Sokolov) almost 9 years ago
- Description updated (diff)
Updated by shyouhei (Shyouhei Urabe) almost 9 years ago
I listed this issue to be looked at the yesterday's developer meeting but sadly no time was there to deeply inspect it. At a glance it seems possible now to reflect inclusion happened afterwards. It has a chance.
Updated by shyouhei (Shyouhei Urabe) over 8 years ago
- Status changed from Open to Assigned
- Assignee set to nobu (Nobuyoshi Nakada)
We at developer meeting looked at it again. Nobu thinks he can fix this so I'm assigning to him. He said to me this is low priority, though.
Updated by jeremyevans0 (Jeremy Evans) almost 5 years ago
- Status changed from Assigned to Closed
This was implemented in 3556a834a2847e52162d1d3302d4c64390df1694.
Actions
Like0
Like0Like0Like0Like0