Support inline classes in javaObjectType/javaPrimitiveType
#KT-28290 Fixed Target versions 1.3.30
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun box(): String {
|
||||
val c = UInt::class.javaObjectType
|
||||
val x = c.cast(123u)
|
||||
|
||||
if (x != 123u) throw AssertionError()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun box(): String {
|
||||
if (UInt::class.javaPrimitiveType != null) throw AssertionError()
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user