I have an extension function of the following form...
# announcements
r
I have an extension function of the following form
inline fun <reified TSub : T, T : Any> MyClass<T>.downCast(...) : MyClass<TSub>{}
is there a way to write something similar to :
Copy code
val myClass : MyClass<CharSequence> = ...
myClass.downCast<String, _>(...)
I do not want to repeat CharSequence in the type parameter list
1