public class Foo { void m() { IFoo.new f(); } } interface IFoo { }