Files
kotlin-fork/idea/testData/intentions/destructuringInLambda/noItVariables.kt.after
T

9 lines
174 B
Plaintext
Vendored

// WITH_RUNTIME
data class XY(val x: String, val y: String)
fun convert(xy: XY, foo: (XY) -> Unit) = foo(xy)
fun foo(xy: XY) = convert(xy) { (x, y) ->
println(x + y)
}