interface A { fun foo(bar: String): Any } interface B : A { override fun foo(bar: Any): String }