diff --git a/idea/testData/intentions/iterationOverMap/DataClassDependentLocal.kt b/idea/testData/intentions/iterationOverMap/DataClassDependentLocal.kt index fbdbc11aa6f..2b0b235dfc4 100644 --- a/idea/testData/intentions/iterationOverMap/DataClassDependentLocal.kt +++ b/idea/testData/intentions/iterationOverMap/DataClassDependentLocal.kt @@ -1,4 +1,4 @@ -// IS_APPLICABLE: false +// IS_APPLICABLE: true // WITH_RUNTIME data class XY(val x: Int, val y: Int) diff --git a/idea/testData/intentions/iterationOverMap/DataClassDependentLocal.kt.after b/idea/testData/intentions/iterationOverMap/DataClassDependentLocal.kt.after new file mode 100644 index 00000000000..9d0b37cd8c9 --- /dev/null +++ b/idea/testData/intentions/iterationOverMap/DataClassDependentLocal.kt.after @@ -0,0 +1,11 @@ +// IS_APPLICABLE: true +// WITH_RUNTIME + +data class XY(val x: Int, val y: Int) +fun test(xys: Array) { + for ((x, y1) in xys) { + println(x) + val y = y1 + x + println(y) + } +} \ No newline at end of file