Revision: 1510 http://trac.macosforge.org/projects/ruby/changeset/1510 Author: vincent.isambart@gmail.com Date: 2009-05-01 22:04:12 -0700 (Fri, 01 May 2009) Log Message: ----------- added 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-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"