public void RubyBlocks18() { TestOutput(@" class C def y yield end def foo y { p self.class } end end C.new.foo ", @" C "); }