public class Sample { interface G {} interface G1 extends G {} void foo(G1 g1) { bar(g1); } B bar(G gb) {return null;} void f(G1 g1) { G l11 = bar(g1); String l1 = bar(g1); Object o = bar(g1); } }