Files
kotlin-fork/idea/testData/intentions/destructuringVariables/noInitializer.kt
T

11 lines
170 B
Kotlin
Vendored

// 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
}