[#77789] [Ruby trunk Feature#12012] Add Boolean method — prodis@...
Issue #12012 has been updated by Fernando Hamasaki de Amorim.
4 messages
2016/10/27
[ruby-core:77570] [Ruby trunk Bug#12594][Assigned] The class does not inherit from a module the modules that were included after the inclusion
From:
shyouhei@...
Date:
2016-10-11 10:51:28 UTC
List:
ruby-core #77570
Issue #12594 has been updated by Shyouhei Urabe. Status changed from Open to Assigned Assignee set to 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. ---------------------------------------- Bug #12594: The class does not inherit from a module the modules that were included after the inclusion https://bugs.ruby-lang.org/issues/12594#change-60841 * Author: Nikita Sokolov * Status: Assigned * Priority: Normal * Assignee: Nobuyoshi Nakada * ruby -v: 2.3.0, 2.3.1 * Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN ---------------------------------------- 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`. ~~~ ruby module Serialization end module Period end Period.include Serialization class LimitedPeriod include Period end LimitedPeriod < Serialization # => true ~~~ ~~~ ruby module Serialization end module Period end class LimitedPeriod include Period end Period.include Serialization LimitedPeriod < Serialization # => false ~~~ -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:[email protected]?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>