package test; class Test extends B { void test() { int x = foo(); Integer y = foo(); Object z = foo(); } }