diff --git a/compiler/testData/codegen/box/ranges/contains/inCustomObjectRange.kt b/compiler/testData/codegen/box/ranges/contains/inCustomObjectRange.kt index ed69d00b137..c52fda80d82 100644 --- a/compiler/testData/codegen/box/ranges/contains/inCustomObjectRange.kt +++ b/compiler/testData/codegen/box/ranges/contains/inCustomObjectRange.kt @@ -2,7 +2,7 @@ class A(val z: Int) : Comparable { override fun compareTo(other: A): Int { - return Integer.compare(z, other.z) + return z.compareTo(other.z) } }