Files
kotlin/compiler/testData/codegen/box/destructuringDeclInLambdaParam/inline.kt
2019-11-19 11:00:09 +03:00

7 lines
186 B
Kotlin
Vendored

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