9 lines
161 B
Kotlin
Vendored
9 lines
161 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
@JvmInline
|
|
value class X(val s: String)
|
|
fun foo(x: X, block: (X) -> String = { it.s }) = block(x)
|
|
|
|
fun box(): String {
|
|
return foo(X("OK"))
|
|
}
|