public void BlockReturnOptimization2() { StackUnwinder.InstanceCount = 0; TestOutput(@" def foo 10.times do 10.times do 10.times do return 123 end end end end puts foo ", @" 123 "); Assert(StackUnwinder.InstanceCount == 0); }