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

10 lines
172 B
Kotlin
Vendored

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