interface A { fun foo() } interface Z { fun foo() } class B: A, Z { override fun foo() { } }