producerOf

fun producerOf(outType: TypeName): WildcardTypeName

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

fun producerOf(outType: Type): WildcardTypeName
fun producerOf(outType: KClass<*>): WildcardTypeName