Files
kotlin-fork/compiler/testData/codegen/boxInline/delegatedProperty/localDeclaredInLambda.kt
T
pyos a6c62d3339 JVM_IR: do not inherit delegated property trackers
This is no longer needed now that lambdas are generated before
`$$delegatedProperties`.
2020-10-07 14:30:36 +02:00

20 lines
368 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
}()
}
// FILE: box.kt
import test.*
fun box(): String = C.inlineFun()