class Test { { I i = new I() { public void foo() {} }; } interface I {} }