public void Scenario_YieldCodeGen() { AssertOutput(delegate() { CompilerTest(@" def foo puts 1, yield end foo { 2 } "); }, @" 1 2 "); }