public void BlockReturnOptimization3() { StackUnwinder.InstanceCount = 0; TestOutput(@" def f0 $b = proc { return 123 } f1 {} end def f1 f2 {} end def f2 f3(&$b) end def f3 yield end puts f0 ", @" 123 "); Assert(StackUnwinder.InstanceCount == 0); }