8 lines
134 B
Kotlin
Vendored
8 lines
134 B
Kotlin
Vendored
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
|
|
} |