diff --git a/kotlinx-coroutines-core/build.gradle b/kotlinx-coroutines-core/build.gradle index ef4285c0b4..001df3a055 100644 --- a/kotlinx-coroutines-core/build.gradle +++ b/kotlinx-coroutines-core/build.gradle @@ -224,6 +224,7 @@ kotlin.sourceSets.configureEach { if (it.name in ["jvmMain", "jsMain", "concurrentMain", "commonMain"]) return languageSettings { optIn('kotlinx.cinterop.ExperimentalForeignApi') + optIn('kotlin.experimental.ExperimentalNativeApi') } } diff --git a/kotlinx-coroutines-core/native/src/Debug.kt b/kotlinx-coroutines-core/native/src/Debug.kt index e208addf88..f17c2ed7fc 100644 --- a/kotlinx-coroutines-core/native/src/Debug.kt +++ b/kotlinx-coroutines-core/native/src/Debug.kt @@ -9,7 +9,6 @@ import kotlin.native.* internal actual val DEBUG: Boolean = false -@OptIn(ExperimentalStdlibApi::class) internal actual val Any.hexAddress: String get() = identityHashCode().toUInt().toString(16) internal actual val Any.classSimpleName: String get() = this::class.simpleName ?: "Unknown"