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

source_changes at macosforge.org source_changes at macosforge.org
Thu Dec 16 16:51:21 PST 2010


Revision: 5039
          http://trac.macosforge.org/projects/ruby/changeset/5039
Author:   lsansonetti at apple.com
Date:     2010-12-16 16:51:17 -0800 (Thu, 16 Dec 2010)
Log Message:
-----------
add reduction for bug #1054

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

Modified: MacRuby/trunk/test_vm/class.rb
===================================================================
--- MacRuby/trunk/test_vm/class.rb	2010-12-16 07:06:28 UTC (rev 5038)
+++ MacRuby/trunk/test_vm/class.rb	2010-12-17 00:51:17 UTC (rev 5039)
@@ -198,3 +198,10 @@
   end
   Foo.new.foo(1,2,3,4,5)
 }
+
+assert '[2, 3, 4]', %{
+  class Foo
+    define_method(:foo) { |a, *b, c| p b }
+  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/20101216/87c0c3f5/attachment.html>


More information about the macruby-changes mailing list