Files
kotlin-fork/compiler/testData/codegen/box/destructuringDeclInLambdaParam/simple.kt
T
2018-06-28 12:26:41 +02:00

7 lines
175 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
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 }