[MacRuby] #1248: nested module include bug

MacRuby ruby-noreply at macosforge.org
Fri Apr 29 16:40:25 PDT 2011


#1248: nested module include bug
-----------------------------------+----------------------------------------
 Reporter:  lsansonetti@…          |       Owner:  lsansonetti@…        
     Type:  defect                 |      Status:  new                  
 Priority:  blocker                |   Milestone:                       
Component:  MacRuby                |    Keywords:                       
-----------------------------------+----------------------------------------
 The following code does not perform as expected.

 {{{
 module M01; end
 module M02; end

 module M03; include M02; end
 module M02; include M01; end
 module M03; include M02; end

 p M01.ancestors
 p M02.ancestors
 p M03.ancestors
 }}}

 Result:

 {{{
 $ ruby19 t.rb
 [M01]
 [M02, M01]
 [M03, M02, M01]

 $ macruby t.rb
 [M01]
 [M02, M01]
 [M03, M02, M01, M01, M02, M01]
 }}}

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



More information about the macruby-tickets mailing list