[MacRuby] #564: Scoping within nested classes is broken
#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/>
#564: Scoping within nested classes is broken ---------------------------------------+------------------------------------ Reporter: joshua.ballanco@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.6 Component: MacRuby | Resolution: fixed Keywords: module | ---------------------------------------+------------------------------------ Changes (by martinlagardette@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.6 Comment: Looks fixed! {{{ $ cat test.rb module A module B def lestry puts "yay!" end end class C end class C::D include B end end A::C::D.new.lestry $ macruby test.rb yay! }}} I guess I can close? :P -- Ticket URL: <http://www.macruby.org/trac/ticket/564#comment:1> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby