From 107129679e875341228aeab9869b4b9edb0c9038 Mon Sep 17 00:00:00 2001 From: Svyatoslav Scherbina Date: Tue, 30 Mar 2021 15:32:46 +0000 Subject: [PATCH] Native: fix interop_objc_tests after recent frontend change b60056f11e5b5ec9077a4871f236d26f44aca0b2 raises a warning to an error, fixing this error here. --- .../tests/interop/objc/tests/structWithNSObject.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/structWithNSObject.kt b/kotlin-native/backend.native/tests/interop/objc/tests/structWithNSObject.kt index 67459f8b17f..4c785b15957 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/structWithNSObject.kt +++ b/kotlin-native/backend.native/tests/interop/objc/tests/structWithNSObject.kt @@ -42,13 +42,13 @@ fun testStructWithNSObject() { struct.dictionary = null assertEquals(null, struct.dictionary) struct.dictionary = mapOf("k1" to "v1", "k2" to "v2") - assertEquals(mapOf("k1" to "v1", "k2" to "v2"), struct.dictionary) + assertEquals(mapOf("k1" to "v1", "k2" to "v2"), struct.dictionary) struct.mutableArray = null assertEquals(null, struct.mutableArray) struct.mutableArray = mutableListOf(1, 2) struct.mutableArray!! += 3 - assertEquals(mutableListOf(1, 2, 3), struct.mutableArray) + assertEquals(mutableListOf(1, 2, 3), struct.mutableArray) // Check that subtyping via Nothing-returning functions does not break compiler. assertFailsWith {