mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 08:31:29 +00:00
8 lines
164 B
Kotlin
Vendored
8 lines
164 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
inline class X(val s: String)
|
|
fun foo(x: X, block: (X) -> String = { it.s }) = block(x)
|
|
|
|
fun box(): String {
|
|
return foo(X("OK"))
|
|
}
|