mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
11 lines
225 B
Kotlin
Vendored
11 lines
225 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
val alist = arrayListOf(1, 2, 3) // : j.u.ArrayList<k.Int>
|
|
|
|
fun box(): String {
|
|
var result = 0
|
|
for (i: Int in alist) {
|
|
result += i
|
|
}
|
|
|
|
return if (result == 6) "OK" else "fail: $result"
|
|
} |