mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
9 lines
194 B
Kotlin
Vendored
9 lines
194 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
// IGNORE_BACKEND_FIR: JVM_IR
|
|
inline class X(val s: String)
|
|
fun foo(x: X, block: (X) -> String = { it.s }) = block(x)
|
|
|
|
fun box(): String {
|
|
return foo(X("OK"))
|
|
}
|