Revision
4179
Author
eloy.de.enige@gmail.com
Date
2010-06-01 01:35:09 -0700 (Tue, 01 Jun 2010)

Log Message

Add failing test about overriding a method with a different arity and calling super.

Modified Paths

Diff

Modified: MacRuby/trunk/test_vm/dispatch.rb (4178 => 4179)


--- MacRuby/trunk/test_vm/dispatch.rb	2010-06-01 08:34:53 UTC (rev 4178)
+++ MacRuby/trunk/test_vm/dispatch.rb	2010-06-01 08:35:09 UTC (rev 4179)
@@ -491,6 +491,20 @@
   p Foo.new.respond_to?(:object_id)
 }
 
+assert ":ok", %{
+  class C1
+    def foo(arg); end
+  end
+  class C2 < C1
+    def foo; super; end
+  end
+  begin
+    C2.new.foo
+  rescue ArgumentError
+    p :ok
+  end
+}
+
 # TODO: find a better place for this.
 assert '', %{
   $SAFE=4