Add failing test about overriding a method with a different arity and calling super.
--- 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