diff --git a/compiler/testData/codegen/box/reflection/mapping/inlineReifiedFun.kt b/compiler/testData/codegen/box/reflection/mapping/inlineReifiedFun.kt index 09060b1be71..656fbbd97d0 100644 --- a/compiler/testData/codegen/box/reflection/mapping/inlineReifiedFun.kt +++ b/compiler/testData/codegen/box/reflection/mapping/inlineReifiedFun.kt @@ -14,10 +14,10 @@ class Foo { } fun box(): String { - assertEquals(::g, ::g.javaMethod!!.kotlinFunction) + assertEquals(::g as Any?, ::g.javaMethod!!.kotlinFunction) val h = Foo::class.members.single { it.name == "h" } as KFunction<*> - assertEquals(h, h.javaMethod!!.kotlinFunction) + assertEquals(h, h.javaMethod!!.kotlinFunction as Any?) return "OK" } diff --git a/compiler/testData/codegen/box/reflection/noReflectAtRuntime/methodsFromAny/callableReferences.kt b/compiler/testData/codegen/box/reflection/noReflectAtRuntime/methodsFromAny/callableReferences.kt index 48031e6a259..9be0af350e1 100644 --- a/compiler/testData/codegen/box/reflection/noReflectAtRuntime/methodsFromAny/callableReferences.kt +++ b/compiler/testData/codegen/box/reflection/noReflectAtRuntime/methodsFromAny/callableReferences.kt @@ -14,7 +14,7 @@ class M { fun topLevelFun() {} val topLevelProp = "" -fun checkEquals(x: KCallable<*>, y: KCallable<*>) { +fun checkEquals(x: KCallable, y: KCallable) { assertEquals(x, y) assertEquals(y, x) assertEquals(x.hashCode(), y.hashCode()) diff --git a/compiler/testData/codegen/box/reflection/noReflectAtRuntime/methodsFromAny/delegatedProperty.kt b/compiler/testData/codegen/box/reflection/noReflectAtRuntime/methodsFromAny/delegatedProperty.kt index aba2096391e..be7e3c9195b 100644 --- a/compiler/testData/codegen/box/reflection/noReflectAtRuntime/methodsFromAny/delegatedProperty.kt +++ b/compiler/testData/codegen/box/reflection/noReflectAtRuntime/methodsFromAny/delegatedProperty.kt @@ -13,8 +13,8 @@ object Delegate { } operator fun getValue(x: Any?, p: KProperty<*>) { - assertEquals(prop, p) - assertEquals(p, prop) + assertEquals(prop as Any, p) + assertEquals(p as Any, prop) assertEquals(p.hashCode(), prop.hashCode()) assertEquals("property x (Kotlin reflection is not available)", p.toString()) }