diff --git a/compiler/testData/codegen/boxWithStdlib/fullJdk/regressions/collections.kt b/compiler/testData/codegen/boxWithStdlib/fullJdk/regressions/collections.kt index 396472d74f9..655d55d983d 100644 --- a/compiler/testData/codegen/boxWithStdlib/fullJdk/regressions/collections.kt +++ b/compiler/testData/codegen/boxWithStdlib/fullJdk/regressions/collections.kt @@ -12,7 +12,7 @@ fun testCollectionContains(c: Collection) = assertTrue(c.contains(1)) fun testCollectionIterator(c: Collection) { val it = c.iterator() while (it.hasNext()) { - assertEquals(1, it.next()) + assertEquals(1, it.next() as Any?) } } fun testCollectionContainsAll(c: Collection) = assertTrue(c.containsAll(c)) diff --git a/compiler/testData/codegen/boxWithStdlib/jvmField/topLevelFieldReference.kt b/compiler/testData/codegen/boxWithStdlib/jvmField/topLevelFieldReference.kt index 6a6ad8e3aaa..44fcf2df17a 100644 --- a/compiler/testData/codegen/boxWithStdlib/jvmField/topLevelFieldReference.kt +++ b/compiler/testData/codegen/boxWithStdlib/jvmField/topLevelFieldReference.kt @@ -20,5 +20,5 @@ fun box(): String { } public fun checkAccessor(prop: KProperty0, value: R) { - assertEquals(prop.get(), value, "Property ${prop} has wrong value") + assertEquals(prop.get(), value, "Property ${prop} has wrong value") } \ No newline at end of file diff --git a/compiler/testData/codegen/boxWithStdlib/reflection/classLiterals/arrays.kt b/compiler/testData/codegen/boxWithStdlib/reflection/classLiterals/arrays.kt index f1be66a5c7b..bdc934fb108 100644 --- a/compiler/testData/codegen/boxWithStdlib/reflection/classLiterals/arrays.kt +++ b/compiler/testData/codegen/boxWithStdlib/reflection/classLiterals/arrays.kt @@ -1,11 +1,12 @@ import kotlin.test.* +import kotlin.reflect.KClass fun box(): String { val any = Array::class val string = Array::class - assertNotEquals(any, string) - assertNotEquals(any.java, string.java) + assertNotEquals>(any, string) + assertNotEquals>(any.java, string.java) return "OK" }