robstoll
03/12/2017, 12:22 AMinline fun <reified TSub : T, T : Any> MyClass<T>.downCast(...) : MyClass<TSub>{}
is there a way to write something similar to :
val myClass : MyClass<CharSequence> = ...
myClass.downCast<String, _>(...)
I do not want to repeat CharSequence in the type parameter list