Revision
2935
Author
lsansonetti@apple.com
Date
2009-10-30 22:50:02 -0700 (Fri, 30 Oct 2009)

Log Message

added 2 tests

Modified Paths

Diff

Modified: MacRuby/trunk/test_vm/block.rb (2934 => 2935)


--- MacRuby/trunk/test_vm/block.rb	2009-10-31 05:49:51 UTC (rev 2934)
+++ MacRuby/trunk/test_vm/block.rb	2009-10-31 05:50:02 UTC (rev 2935)
@@ -689,3 +689,24 @@
   end
   f
 }
+
+assert ':ok', %{
+  def f
+    b = Proc.new { return :ok }
+    b.call
+    42
+  end
+  p f
+}
+
+assert ':ok', %{
+  def f2(b)
+    b.call
+  end
+  def f
+    b = Proc.new { return :ok }
+    f2(b)
+    42
+  end
+  p f
+}