public void ConstantCaching_Unqualified4() { TestOutput(@" class C def self.foo X # tested cache end end C.foo rescue p $! module M X = 1 end class C include M end p C.foo ", @" #<NameError: uninitialized constant C::X> 1 "); }