public void Scenario_RubyClosures1() { AssertOutput(delegate() { CompilerTest(@" def foo y = 10 3.times { |x| puts x + y } end foo "); }, @" 10 11 12"); }