[macruby-changes] [5036] MacRuby/trunk/test_vm/class.rb

source_changes at macosforge.org source_changes at macosforge.org
Wed Dec 15 19:42:08 PST 2010


Revision: 5036
          http://trac.macosforge.org/projects/ruby/changeset/5036
Author:   lsansonetti at apple.com
Date:     2010-12-15 19:42:04 -0800 (Wed, 15 Dec 2010)
Log Message:
-----------
add reduction for bug #1050

Modified Paths:
--------------
    MacRuby/trunk/test_vm/class.rb

Modified: MacRuby/trunk/test_vm/class.rb
===================================================================
--- MacRuby/trunk/test_vm/class.rb	2010-12-16 02:37:14 UTC (rev 5035)
+++ MacRuby/trunk/test_vm/class.rb	2010-12-16 03:42:04 UTC (rev 5036)
@@ -191,3 +191,10 @@
   end
   class Y < X; end
 }
+
+assert '[2, 3, 4, 5]', %{
+  class Foo
+    define_method(:foo) {|_, *a| p a }
+  end
+  Foo.new.foo(1,2,3,4,5)
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20101215/b348a558/attachment.html>


More information about the macruby-changes mailing list