Files
kotlin-fork/idea/testData/intentions/iterationOverMap/DataClassTwoDifferentLocals.kt
T
2016-10-06 21:16:46 +03:00

11 lines
203 B
Kotlin
Vendored

// WITH_RUNTIME
data class XY(val x: String, val y: Int)
fun test(xys: Array<XY>) {
for (<caret>xy in xys) {
val x = xy.x
println(x)
val xx = xy.x
println(xx)
}
}