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