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

20 lines
379 B
Kotlin
Vendored

// IGNORE_BACKEND_MULTI_MODULE: JVM, JVM_MULTI_MODULE_IR_AGAINST_OLD
// FILE: test.kt
package test
import kotlin.reflect.KProperty
inline operator fun String.getValue(t:Any?, p: KProperty<*>): String = p.name + this
object C {
inline fun inlineFun() = {
val O by "K"
O
}.let { it() }
}
// FILE: box.kt
import test.*
fun box(): String = C.inlineFun()