UnsafeNumber

@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)
annotation class UnsafeNumber(val actualPlatformTypes: Array<String>)(source)

Marker for declarations that depend on numeric types of different bit width on at least two platforms.

Since Kotlin

1.3

Parameters

actualPlatformTypes

Contains platform types represented as {konanTarget}: {type fqn} e.g. "linux_x64: kotlin.Int", "linux_arm64: kotlin.Long"

Properties

Link copied to clipboard
Since Kotlin 1.3