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