package pck; class A {} interface IA{ void foo(A x); } interface IB{ void foo(A x); } class C { <T extends IA & IB> void bar(T x, A y){ x.foo(y); } }