mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
10 lines
206 B
Kotlin
Vendored
10 lines
206 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
// IGNORE_BACKEND_FIR: JVM_IR
|
|
|
|
inline fun runInline(fn: () -> String) = fn()
|
|
|
|
inline class R(private val r: Int) {
|
|
fun test() = runInline { "OK" }
|
|
}
|
|
|
|
fun box() = R(0).test() |