public void SingletonCaching1() { AssertOutput(delegate() { CompilerTest(@" class C def foo puts 'foo' end end c = C.new c.foo class << c def foo puts 'bar' end end c.foo "); }, @" foo bar"); }