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