Files
kotlin-fork/compiler/testData/codegen/box/delegatedProperty/optimizedDelegatedProperties/kt42253.kt
T
2022-07-14 23:24:18 +02:00

17 lines
328 B
Kotlin
Vendored

import kotlin.reflect.KProperty
inline operator fun String.getValue(t:Any?, p: KProperty<*>): String = p.name + this
object ForceOutOfOrder {
fun callInline() = C.inlineFun()
}
object C {
inline fun inlineFun() = {
val O by "K"
O
}.let { it() }
}
fun box(): String = ForceOutOfOrder.callInline()