mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
10 lines
242 B
Kotlin
Vendored
10 lines
242 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
|
|
inline class UIntArray(private val intArray: IntArray) {
|
|
val size get() = intArray.size
|
|
}
|
|
|
|
fun box(): String {
|
|
val array = UIntArray(intArrayOf(1, 2, 3))
|
|
return if (array.size != 3) "fail" else "OK"
|
|
} |