Files
kotlin-fork/compiler/testData/codegen/box/destructuringDeclInLambdaParam/inline.kt
T
2018-06-09 19:15:38 +03:00

7 lines
181 B
Kotlin
Vendored

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