Skip to content

Commit 86deed2

Browse files
authored
OptIn for K/N identityHashCode() (#3693)
The function was made experimental as a part of efforts to stabilize Native stdlib.
1 parent 6bad5fc commit 86deed2

File tree

1 file changed

+1
-0
lines changed
  • kotlinx-coroutines-core/native/src

1 file changed

+1
-0
lines changed

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

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

1010
internal actual val DEBUG: Boolean = false
1111

12+
@OptIn(ExperimentalStdlibApi::class)
1213
internal actual val Any.hexAddress: String get() = identityHashCode().toUInt().toString(16)
1314

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

0 commit comments

Comments
 (0)