Destructure intention now handles the case with manual destructuring inside #KT-13943 Fixed
This commit is contained in:
+13
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user