Destructure intention: use also for variable declarations #KT-7488 Fixed

This commit is contained in:
Mikhail Glukhikh
2016-10-04 18:00:41 +03:00
parent de865c6d46
commit 37debf4436
10 changed files with 132 additions and 11 deletions
@@ -0,0 +1,11 @@
// IS_APPLICABLE: false
data class XY(val x: Int, val y: Int)
fun create() = XY(1, 2)
fun use(): Int {
var <caret>xy = create()
xy = create()
return xy.x + xy.y
}