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

6 lines
156 B
Kotlin
Vendored

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 }