Skip to content

Commit acc6acd

Browse files
author
Abduqodiri Qurbonzoda
authored
OptIn for ExperimentalNativeApi (#3788)
* OptIn for ExperimentalNativeApi Any.identityHashCode(), processUnhandledException(Throwable) and kotlin.native.Platform became ExperimentalNativeApi in 1.9.0. In 1.9.20 the opt-in requirement level of the annotation was raised to ERROR.
1 parent c5ce96a commit acc6acd

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

kotlinx-coroutines-core/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ kotlin.sourceSets.configureEach {
224224
if (it.name in ["jvmMain", "jsMain", "concurrentMain", "commonMain"]) return
225225
languageSettings {
226226
optIn('kotlinx.cinterop.ExperimentalForeignApi')
227+
optIn('kotlin.experimental.ExperimentalNativeApi')
227228
}
228229
}
229230

kotlinx-coroutines-core/native/src/Debug.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import kotlin.native.*
99

1010
internal actual val DEBUG: Boolean = false
1111

12-
@OptIn(ExperimentalStdlibApi::class)
1312
internal actual val Any.hexAddress: String get() = identityHashCode().toUInt().toString(16)
1413

1514
internal actual val Any.classSimpleName: String get() = this::class.simpleName ?: "Unknown"

0 commit comments

Comments
 (0)