[MacRuby] #1473: modules mixed into other modules get mixed in twice to a class

MacRuby ruby-noreply at macosforge.org
Tue Feb 28 21:43:46 PST 2012


#1473: modules mixed into other modules get mixed in twice to a class
------------------------------------+---------------------------------------
 Reporter:  mrada@…                 |       Owner:  lsansonetti@…        
     Type:  defect                  |      Status:  new                  
 Priority:  blocker                 |   Milestone:                       
Component:  MacRuby                 |    Keywords:  reduction            
------------------------------------+---------------------------------------
 MacRuby seems to have a strange behaviour when mixing in modules that have
 other modules mixed into them.

 The first issue I noticed was that `Module#ancestors` reports the nested
 module twice:

 {{{
 module Core; end

 module Factory
   include Core
 end

 class Cat
   include Factory
 end

 p Cat.ancestors
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/1473>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list