Minor: add non-intrinsified cases for javaObjectType/javaPrimitiveType
This commit is contained in:
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user