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

9 lines
168 B
Kotlin
Vendored

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