--- MacRuby/branches/experimental/test_vm/block.rb 2009-05-02 03:49:04 UTC (rev 1508)
+++ MacRuby/branches/experimental/test_vm/block.rb 2009-05-02 05:04:07 UTC (rev 1509)
@@ -331,5 +331,17 @@
f { throw :a }
p :ok
}
+
+assert ':ok', %{
+ def f()
+ a = :ok
+ b = true
+ x = proc { a }
+ 1.times {
+ return x
+ }
+ end
+ p f.call
+}
# Enumerator
assert "[\"f\", \"o\", \"o\"]", "p 'foo'.chars.to_a"