mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
10 lines
223 B
Kotlin
Vendored
10 lines
223 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
// IGNORE_BACKEND_FIR: JVM_IR
|
|
|
|
inline fun <T> T.runInlineExt(fn: T.() -> String) = fn()
|
|
|
|
inline class R(private val r: String) {
|
|
fun test() = runInlineExt { r }
|
|
}
|
|
|
|
fun box() = R("OK").test() |