mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-04-30 15:52:58 +00:00
9 lines
190 B
Kotlin
Vendored
9 lines
190 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
|
|
inline fun <T> T.runInlineExt(fn: T.() -> String) = fn()
|
|
|
|
inline class R(private val r: Int) {
|
|
fun test() = runInlineExt { "OK" }
|
|
}
|
|
|
|
fun box() = R(0).test() |