class MyTest { interface I { X _(); } static T bar() {return null;} static { I i = MyTest::bar; } }