[macruby-changes] [1558] MacRuby/branches/experimental/test_vm/block.rb
source_changes at macosforge.org
source_changes at macosforge.org
Fri May 8 05:09:27 PDT 2009
Revision: 1558
http://trac.macosforge.org/projects/ruby/changeset/1558
Author: vincent.isambart at gmail.com
Date: 2009-05-08 05:09:25 -0700 (Fri, 08 May 2009)
Log Message:
-----------
added a failing test
Modified Paths:
--------------
MacRuby/branches/experimental/test_vm/block.rb
Modified: MacRuby/branches/experimental/test_vm/block.rb
===================================================================
--- MacRuby/branches/experimental/test_vm/block.rb 2009-05-08 11:50:31 UTC (rev 1557)
+++ MacRuby/branches/experimental/test_vm/block.rb 2009-05-08 12:09:25 UTC (rev 1558)
@@ -409,3 +409,18 @@
assert ':ok', %{
def foo(x=Proc.new); x.call; end; foo { p :ok }
}
+
+assert ':ok', %{
+ def a
+ yield
+ end
+ def b(&block)
+ a(&block)
+ end
+ def c
+ b do
+ yield
+ end
+ end
+ c { p :ok }
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090508/e2215723/attachment.html>
More information about the macruby-changes
mailing list