Files
kotlin-fork/idea/testData/intentions/iterationOverMap/DataClassDependentLocal.kt
T
Valentin Kipyatkov b0ed6adce3 Fixed wrong test
2016-09-27 18:05:26 +03:00

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)
}
}