mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 15:53:46 +00:00
* JVM incorrectly mapped T<KClass<...>> to T<Class<...>> because the annotation-ness of the type mapping mode was inherited one level down into a generic signature independent of T * JVM_IR was even worse as it did not use VALUE_FOR_ANNOTATION at all, mapping T<T<KClass<...>> to T<T<Class<...>> as well. The correct behavior is to map KClass to Class only at top level or as an argument of Array.
8 lines
217 B
Kotlin
Vendored
8 lines
217 B
Kotlin
Vendored
import kotlin.reflect.KClass
|
|
|
|
annotation class Ann(val arg: KClass<out KClass<*>>)
|
|
|
|
// method: Ann::arg
|
|
// jvm signature: ()Ljava/lang/Class;
|
|
// generic signature: ()Ljava/lang/Class<+Lkotlin/reflect/KClass<*>;>;
|