Support inline classes in javaObjectType/javaPrimitiveType

#KT-28290 Fixed Target versions 1.3.30
This commit is contained in:
Dmitry Petrov
2018-12-21 17:47:15 +03:00
parent 5abbf3562b
commit 6768ae02c3
8 changed files with 67 additions and 6 deletions
@@ -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"
}