[MacRuby] #443: included method in an included module don't get defined in the extended object
#443: included method in an included module don't get defined in the extended object -------------------------------------+-------------------------------------- Reporter: mattaimonetti@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: -------------------------------------+-------------------------------------- {{{ module Y def y puts 'y' end end module X include Y def x puts 'x' end end o = Object.new o.extend X o.x o.y }}} Bug reported by Rich Kilmer which is the reason why HotCocoa #on_action doesn't work in b2 -- Ticket URL: <http://www.macruby.org/trac/ticket/443> MacRuby <http://macruby.org/>
#443: included method in an included module don't get defined in the extended object -------------------------------------+-------------------------------------- Reporter: mattaimonetti@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: -------------------------------------+-------------------------------------- Description changed by mattaimonetti@…: Old description:
{{{ module Y def y puts 'y' end end
module X include Y def x puts 'x' end end
o = Object.new o.extend X o.x o.y }}}
Bug reported by Rich Kilmer which is the reason why HotCocoa #on_action doesn't work in b2
New description: {{{ module Y def y puts 'y' end end module X include Y def x puts 'x' end end o = Object.new o.extend X o.x o.y NoMethodError: undefined method `y' for #<NSObject:0x2000f34e0> }}} Bug reported by Rich Kilmer which is the reason why HotCocoa #on_action doesn't work in b2 -- -- Ticket URL: <http://www.macruby.org/trac/ticket/443#comment:1> MacRuby <http://macruby.org/>
#443: included method in an included module don't get defined in the extended object -------------------------------------+-------------------------------------- Reporter: mattaimonetti@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: -------------------------------------+-------------------------------------- Comment(by lsansonetti@…): Added test_vm test in r3185. -- Ticket URL: <http://www.macruby.org/trac/ticket/443#comment:2> MacRuby <http://macruby.org/>
#443: included method in an included module don't get defined in the extended object -------------------------------------+-------------------------------------- Reporter: mattaimonetti@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.5 Component: MacRuby | Resolution: fixed Keywords: | -------------------------------------+-------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed Comment: Should be fixed by r3186. -- Ticket URL: <http://www.macruby.org/trac/ticket/443#comment:3> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby