Files
Mikhail Glukhikh 8d448e306e Destructure intention: use also for variable declarations #KT-7488 Fixed
GitOrigin-RevId: ffa8857bdf1b82013afdcab3ceca244998265c1b
2016-10-06 21:03:29 +03:00

8 lines
134 B
Kotlin

data class XY(val x: Int, val y: Int)
fun create() = XY(1, 2)
fun use(): Int {
val <caret>xy = create()
return xy.x + xy.y
}