[macruby-changes] [4179] MacRuby/trunk/test_vm/dispatch.rb
source_changes at macosforge.org
source_changes at macosforge.org
Tue Jun 1 01:35:11 PDT 2010
Revision: 4179
http://trac.macosforge.org/projects/ruby/changeset/4179
Author: eloy.de.enige at 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:
--------------
MacRuby/trunk/test_vm/dispatch.rb
Modified: MacRuby/trunk/test_vm/dispatch.rb
===================================================================
--- 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100601/9b0d628d/attachment.html>
More information about the macruby-changes
mailing list