Unsafe Number
Начиная с Kotlin: 1.3
annotation class UnsafeNumber(val actualPlatformTypes: Array<String>)@Target(allowedTargets = [AnnotationTarget.TYPEALIAS,AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY ] ) @RequiresOptIn(message = "The declaration is using numbers with different bit widths in least two actual platforms. Such types shall not be used in user-defined 'expect fun' signatures",level = RequiresOptIn.Level.ERROR )
Маркер для объявлений, зависящих от числовых типов разной разрядности как минимум на двух платформах.
Параметры
actual Platform Types
Содержит типы платформ, представленные в виде {konanTarget}: {type fqn}, например: "linux_x64: kotlin.Int", "linux_arm64: kotlin.Long"
Свойства
Начиная с Kotlin: 1.3
val actualPlatformTypes: Array<String>
© 2010–2026 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/core/kotlin-stdlib/kotlinx.cinterop/-unsafe-number/index.html