class A { void bar(A x, A y){ foo(x, y); } T foo(A x, A y){ return null; } }