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
22 lines
300 B
Kotlin
Vendored
22 lines
300 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 prop: String by Delegate()
|
|
return prop
|
|
}
|
|
|
|
|
|
// FILE: 2.kt
|
|
import test.*
|
|
|
|
fun box(): String {
|
|
return test()
|
|
}
|