mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
10 lines
220 B
Kotlin
Vendored
10 lines
220 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: Int) {
|
|
fun test() = runInlineExt { "OK" }
|
|
}
|
|
|
|
fun box() = R(0).test() |