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