class B{ class C {} } class D extends B>{ void foo(D.C x){ bar(x); } void bar(D.C x){} }