diff --git a/compiler/testData/codegen/box/inlineClasses/kt28920_javaObjectType.kt b/compiler/testData/codegen/box/inlineClasses/kt28920_javaObjectType.kt index e5590b4bb00..efefb6ee434 100644 --- a/compiler/testData/codegen/box/inlineClasses/kt28920_javaObjectType.kt +++ b/compiler/testData/codegen/box/inlineClasses/kt28920_javaObjectType.kt @@ -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" } \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/kt28920_javaPrimitiveType.kt b/compiler/testData/codegen/box/inlineClasses/kt28920_javaPrimitiveType.kt index 666d1a8664f..23104938a02 100644 --- a/compiler/testData/codegen/box/inlineClasses/kt28920_javaPrimitiveType.kt +++ b/compiler/testData/codegen/box/inlineClasses/kt28920_javaPrimitiveType.kt @@ -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" } \ No newline at end of file