mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
6 lines
156 B
Kotlin
Vendored
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 }
|