Destructure intention now handles the case with manual destructuring inside #KT-13943 Fixed
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
data class XY(val x: Int, val y: Int)
|
||||
|
||||
fun foo(list: List<XY>): Int {
|
||||
var result = 0
|
||||
for ((x, y) in list) {
|
||||
result += x
|
||||
result += y
|
||||
}
|
||||
return result
|
||||
}
|
||||
Reference in New Issue
Block a user