subtypeOf

open fun subtypeOf(bound: Type): WildcardType

Returns a type that represents an unknown type that extends {@code bound}. For example, if {@code bound} is {@code CharSequence.class}, this returns {@code ? extends CharSequence}. If {@code bound} is {@code Object.class}, this returns {@code ?}, which is shorthand for {@code ? * extends Object}.