[MacRuby] #1246: Module#ancestors is broken when include the Module.
MacRuby
ruby-noreply at macosforge.org
Thu Apr 28 20:36:52 PDT 2011
#1246: Module#ancestors is broken when include the Module.
----------------------------------+-----------------------------------------
Reporter: watson1978@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: major | Milestone:
Component: MacRuby | Keywords:
----------------------------------+-----------------------------------------
Test Script:
{{{
#!ruby
module M01; end
module M02; include M01; end
class C01; include M01; end
p M01.ancestors
p M02.ancestors
p C01.ancestors
}}}
Result:
{{{
$ ruby19 t.rb
[M01]
[M02, M01]
[C01, M01, Object, Kernel, BasicObject]
$ macruby t.rb
[M01]
[M02, M01, NSObject, Kernel]
[C01, M01, NSObject, Kernel]
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/1246>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list