Files
kotlin/compiler/testData/codegen/box/destructuringDeclInLambdaParam/simple.kt
2016-09-19 20:22:57 +03:00

6 lines
149 B
Kotlin
Vendored

data class A(val x: String, val y: String)
fun foo(a: A, block: (A) -> String): String = block(a)
fun box() = foo(A("O", "K")) { (x, y) -> x + y }