package test2; import test.A.B; class Test { B foo() { return B.INSTANCE; } }