[macruby-changes] [4804] MacRuby/trunk/test_vm/dispatch.rb
source_changes at macosforge.org
source_changes at macosforge.org
Mon Oct 18 19:55:59 PDT 2010
Revision: 4804
http://trac.macosforge.org/projects/ruby/changeset/4804
Author: lsansonetti at apple.com
Date: 2010-10-18 19:55:57 -0700 (Mon, 18 Oct 2010)
Log Message:
-----------
adding reduction for bug #959
Modified Paths:
--------------
MacRuby/trunk/test_vm/dispatch.rb
Modified: MacRuby/trunk/test_vm/dispatch.rb
===================================================================
--- MacRuby/trunk/test_vm/dispatch.rb 2010-10-16 00:08:46 UTC (rev 4803)
+++ MacRuby/trunk/test_vm/dispatch.rb 2010-10-19 02:55:57 UTC (rev 4804)
@@ -511,3 +511,36 @@
s="omg"
s.freeze
}
+
+assert ":X2_foo\n:X_foo\n:Y2_foo\n:Y_foo\n:Y2_foo\n:Y_foo\n:Y2_foo\n:Y_foo\n:X2_foo\n:X_foo\n:Y2_foo\n:Y_foo\n:Y2_foo\n:Y_foo\n:Y2_foo\n:Y_foo", %{
+ class X
+ def initialize
+ @children = []
+ 3.times { @children << Y::Y2.new }
+ end
+ def foo
+ p :X_foo
+ @children.each { |o| o.foo }
+ end
+ class X2 < X
+ def foo
+ p :X2_foo
+ super
+ end
+ end
+ end
+ class Y
+ def foo
+ p :Y_foo
+ end
+ class Y2 < Y
+ def foo
+ p :Y2_foo
+ super
+ end
+ end
+ end
+ o = X::X2.new
+ o.foo
+ o.foo
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20101018/2d27ed53/attachment.html>
More information about the macruby-changes
mailing list