Destructure intention now handles the case with manual destructuring inside #KT-13943 Fixed

This commit is contained in:
Mikhail Glukhikh
2016-10-07 18:43:58 +03:00
parent c7ba19696a
commit 475d5548c4
16 changed files with 250 additions and 23 deletions
@@ -0,0 +1,13 @@
// WITH_RUNTIME
data class XY(val x: Int, val y: Int)
fun foo(list: List<XY>): Int {
var result = 0
for (element<caret> in list) {
val (x) = element
result += x
result += element.y
}
return result
}