// !LANGUAGE: +InlineClasses abstract class GenericBase { abstract fun foo(x: T): T } inline class Str(val str: String) class Derived : GenericBase() { override fun foo(x: Str): Str = x } fun box() = Derived().foo(Str("OK")).str