From 61ebe6a9aab0812d30a5136e4930c43be56ff0e7 Mon Sep 17 00:00:00 2001 From: Dmitry Petrov Date: Mon, 24 Dec 2018 16:43:37 +0300 Subject: [PATCH] Minor: add non-intrinsified cases for javaObjectType/javaPrimitiveType --- .../codegen/box/inlineClasses/kt28920_javaObjectType.kt | 6 +++++- .../codegen/box/inlineClasses/kt28920_javaPrimitiveType.kt | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) 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