Make unsigned array constructor-like functions inline-only
This commit is contained in:
@@ -46,11 +46,12 @@ internal constructor(private val storage: IntArray) : Collection<UInt> {
|
||||
|
||||
@SinceKotlin("1.3")
|
||||
@ExperimentalUnsignedTypes
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun UIntArray(size: Int, init: (Int) -> UInt): UIntArray {
|
||||
return UIntArray(IntArray(size) { index -> init(index).toInt() })
|
||||
}
|
||||
|
||||
@SinceKotlin("1.3")
|
||||
@ExperimentalUnsignedTypes
|
||||
// TODO: @kotlin.internal.InlineOnly
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun uintArrayOf(vararg elements: UInt): UIntArray = elements
|
||||
|
||||
Reference in New Issue
Block a user