From afdecef1128e5cbb3e2d6ea81360ff79d02f7961 Mon Sep 17 00:00:00 2001 From: Pavel Punegov Date: Thu, 8 Apr 2021 11:36:42 +0300 Subject: [PATCH] Use minOrNull instead of deprecated min in the interop_objc_test --- kotlin-native/backend.native/tests/interop/objc/smoke.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kotlin-native/backend.native/tests/interop/objc/smoke.kt b/kotlin-native/backend.native/tests/interop/objc/smoke.kt index 4bad1609993..0408a0ea2d8 100644 --- a/kotlin-native/backend.native/tests/interop/objc/smoke.kt +++ b/kotlin-native/backend.native/tests/interop/objc/smoke.kt @@ -75,7 +75,7 @@ fun run() { if (foo.hashCode() == hash) { // toString (virtually): if (Platform.memoryModel == MemoryModel.STRICT) - println(map.keys.map { it.toString() }.min() == foo.description()) + println(map.keys.map { it.toString() }.minOrNull() == foo.description()) else // TODO: hack until proper cycle collection in maps. println(true)