d600d768a6
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
20 lines
379 B
Kotlin
Vendored
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()
|