Simplify for now works even if no variables are declared inside loop #KT-12145 Fixed

This commit is contained in:
Mikhail Glukhikh
2016-05-17 17:33:46 +03:00
parent 46ac26147b
commit a56248a11a
20 changed files with 337 additions and 36 deletions
@@ -0,0 +1,9 @@
// 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
}
}