interface A interface B { fun foo(x: A) } fun foo(x: B, y: A) { x.foo(y) }