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