Refactoring + minor fixes: destructure intention
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
data class XY(val x: Int, val y: Int)
|
||||
|
||||
fun create() = XY(1, 2)
|
||||
|
||||
annotation class Ann
|
||||
|
||||
fun use(): Int {
|
||||
@Ann val (x, y) = create()
|
||||
return x + y
|
||||
}
|
||||
Reference in New Issue
Block a user