abstract class Foo { fun hello(id: T) = "O$id" } class Bar: Foo() { } fun box() = Bar().hello("K")