Files
kotlin-fork/compiler/testData/codegen/boxInline/delegatedProperty/localDeclaredInLambda.kt
T
vladislav.grechko d600d768a6 Do not assert existence of metadata for local delegated properties
Local delegated property may origin from a body of inlined function.
In that case, they contain no metatada - which is ok, as the original
local delegated properties contain it and will be serialized.

^KT-58780: Fixed
2023-06-13 10:04:28 +00: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()