[MacRuby-devel] [MacRuby] #564: Scoping within nested classes is broken

MacRuby ruby-noreply at macosforge.org
Tue Jan 19 23:43:52 PST 2010


#564: Scoping within nested classes is broken
---------------------------------------+------------------------------------
 Reporter:  joshua.ballanco@…          |       Owner:  lsansonetti@…        
     Type:  defect                     |      Status:  new                  
 Priority:  blocker                    |   Milestone:                       
Component:  MacRuby                    |    Keywords:  module               
---------------------------------------+------------------------------------
 The following code throws an 'uninitialize constant: A::C::D::B' error,
 when it should actually just find the module "B" --
 {{{
 module A
   module B
   end

   class C
   end

   class C::D
     include B
   end
 end
 }}}

 Note: Removing the surrounding "module A" eliminates the lookup problem.

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



More information about the MacRuby-devel mailing list