12 lines
225 B
Kotlin
Vendored
12 lines
225 B
Kotlin
Vendored
// IS_APPLICABLE: true
|
|
// WITH_RUNTIME
|
|
|
|
data class XY(val x: Int, val y: Int)
|
|
fun test(xys: Array<XY>) {
|
|
for (<caret>xy in xys) {
|
|
val x = xy.x
|
|
println(x)
|
|
val y = xy.y + x
|
|
println(y)
|
|
}
|
|
} |