javaType
Returns a Java Type instance corresponding to the given Kotlin type.
This function is experimental because not all the features are supported yet, and behavior might change in corner cases. In particular, the following is not supported correctly or at all:
- declaration-site variance
- variance of types annotated with JvmSuppressWildcards
- obtaining the containing declaration of a type parameter (TypeVariable.getGenericDeclaration)
- annotations of type parameters and their bounds (TypeVariable.getAnnotation, TypeVariable.getAnnotations, TypeVariable.getDeclaredAnnotations, TypeVariable.getAnnotatedBounds)