From 454acd88e90bb0904bef1e38fc7e75babbbaa14e Mon Sep 17 00:00:00 2001 From: Margarita Bobova Date: Thu, 31 Aug 2023 11:23:56 +0200 Subject: [PATCH] Kotlin 1.9.20 migration: Fix ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_MEMBERS_AS_NON_FINAL_EXPECT_CLASSIFIER compilation error (#3870) The compilation error appeared after KT-22841 --- .../native/test/ConcurrentTestUtilities.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kotlinx-coroutines-core/native/test/ConcurrentTestUtilities.kt b/kotlinx-coroutines-core/native/test/ConcurrentTestUtilities.kt index fb97a1f14f..b7040d68ce 100644 --- a/kotlinx-coroutines-core/native/test/ConcurrentTestUtilities.kt +++ b/kotlinx-coroutines-core/native/test/ConcurrentTestUtilities.kt @@ -25,7 +25,10 @@ private object BlackHole { var sink = 1 } -@Suppress("NO_ACTUAL_CLASS_MEMBER_FOR_EXPECTED_CLASS") +@Suppress( + // fixme replace the suppress with AllowDifferentMembersInActual once stdlib is updated to 1.9.20 https://github.com/Kotlin/kotlinx.coroutines/issues/3846 + "ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_MEMBERS_AS_NON_FINAL_EXPECT_CLASSIFIER", +) internal actual typealias SuppressSupportingThrowable = SuppressSupportingThrowableImpl actual val Throwable.suppressed: Array