abstract class Foo { fun hello(id: T) = "Hi $id" } interface Tr { fun hello(s : String): String } class Bar: Foo(), Tr { } fun box(): String = if (Bar().hello("Reg") == "Hi Reg") "OK" else "Fail"