Files
kotlin-fork/compiler/testData/codegen/box/boxingOptimization/unsignedArrayForEach.kt
T
2021-11-10 19:37:24 +03:00

14 lines
212 B
Kotlin
Vendored

// WITH_RUNTIME
import kotlin.test.assertEquals
fun test() {
var i = 0
val a = ubyteArrayOf(3u, 2u, 1u)
a.forEach { e -> assertEquals(e, a[i++]) }
}
fun box(): String {
test()
return "OK"
}