subtypeOf

inline fun <T> subtypeOf(): WildcardType

Returns a type that represents an unknown type that extends T. For example, if T is CharSequence, this returns out CharSequence. If T is Any, this returns *, which is shorthand for out Any?.