Files
kotlin-fork/compiler/testData/codegen/boxInline/delegatedProperty/localInLambda.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

24 lines
306 B
Kotlin
Vendored

// FILE: 1.kt
package test
import kotlin.reflect.KProperty
class Delegate {
operator fun getValue(t: Any?, p: KProperty<*>): String = "OK"
}
inline fun test(): String {
val b by Delegate()
return run {
b
}
}
// FILE: 2.kt
import test.*
fun box(): String {
return test()
}