Destructure intention: use also for variable declarations #KT-7488 Fixed
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// IS_APPLICABLE: false
|
||||
|
||||
data class XY(val x: Int, val y: Int)
|
||||
|
||||
fun create() = XY(1, 2)
|
||||
|
||||
fun use(): Int {
|
||||
val <caret>xy: XY
|
||||
xy = create()
|
||||
return xy.x + xy.y
|
||||
}
|
||||
Reference in New Issue
Block a user