class Foo { interface I { T m(Object op); } interface J { int m(T o); } void f(J r) {} void f(I r) {} { f((Object a) -> 1); } }