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

11 lines
200 B
Plaintext
Vendored

// IS_APPLICABLE: true
// WITH_RUNTIME
data class XY(val x: Int, val y: Int)
fun test(xys: Array<XY>) {
for ((x, y1) in xys) {
println(x)
val y = y1 + x
println(y)
}
}