class Test { interface I { static void foo() {} } abstract static class IImpl implements I {} interface I2 extends I {} { I.foo(); IImpl.foo(); I2.foo(); } }