Skip to content

Commit

Permalink
OptIn for ExperimentalNativeApi (#3788)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
qurbonzoda committed Jun 23, 2023
1 parent c5ce96a commit acc6acd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions kotlinx-coroutines-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
}

Expand Down
1 change: 0 additions & 1 deletion kotlinx-coroutines-core/native/src/Debug.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit acc6acd

Please sign in to comment.