public void RubyBlocks2() { AssertExceptionThrown<MissingMethodException>(delegate() { CompilerTest(@" 3.times { |x| z = 1 } puts z # undef z "); }); }