Files
kotlin-fork/idea/testData/intentions/iterationOverMap/DataClassSecondVariable.kt
T

9 lines
171 B
Kotlin
Vendored

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