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

9 lines
187 B
Kotlin
Vendored

data class XY(val x: String, val y: String)
fun convert(xy: XY, foo: (XY) -> String) = foo(xy)
fun foo(xy: XY) = convert(xy) { <caret>it ->
val x = it.x
val y = it.y
x + y
}