Minor: add non-intrinsified cases for javaObjectType/javaPrimitiveType

This commit is contained in:
Dmitry Petrov
2018-12-24 16:43:37 +03:00
parent d00236d366
commit 61ebe6a9aa
2 changed files with 9 additions and 1 deletions
@@ -5,8 +5,12 @@
fun box(): String {
val c = UInt::class.javaObjectType
val x = c.cast(123u)
if (x != 123u) throw AssertionError()
val uIntClass = UInt::class
val cc = uIntClass.javaObjectType
val xx = cc.cast(123u)
if (xx != 123u) throw AssertionError()
return "OK"
}
@@ -3,5 +3,9 @@
fun box(): String {
if (UInt::class.javaPrimitiveType != null) throw AssertionError()
val uIntClass = UInt::class
if (uIntClass.javaPrimitiveType != null) throw AssertionError()
return "OK"
}