--- MacRuby/branches/experimental/test_vm/block.rb 2009-05-02 05:04:07 UTC (rev 1509)
+++ MacRuby/branches/experimental/test_vm/block.rb 2009-05-02 05:04:12 UTC (rev 1510)
@@ -343,5 +343,18 @@
end
p f.call
}
+
+assert ':ok', %{
+ def f()
+ a = :ok
+ b = false
+ while true
+ return x = proc { a } if b
+ b = true
+ end
+ end
+ p f.call
+}
+
# Enumerator
assert "[\"f\", \"o\", \"o\"]", "p 'foo'.chars.to_a"