IC Mangling: Generate inline class literal instead of underlying type
literal in annotations. #KT-30280 Fixed
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// WITH_REFLECT
|
||||
// TARGET_BACKEND: JVM
|
||||
|
||||
import kotlin.reflect.KClass
|
||||
|
||||
inline class IC(val i: Int)
|
||||
|
||||
annotation class Ann(val c: KClass<*>)
|
||||
|
||||
@Ann(IC::class)
|
||||
class C
|
||||
|
||||
fun box(): String {
|
||||
val klass = (C::class.annotations.first() as Ann).c.toString()
|
||||
return if (klass == "class IC") "OK" else klass
|
||||
}
|
||||
Reference in New Issue
Block a user