class Test4 { void test() { Foo2 f = Test4::yyy; } void yyy() {} } interface Foo2 { void bar(T j); }