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
19 lines
275 B
Kotlin
Vendored
19 lines
275 B
Kotlin
Vendored
// FILE: 1.kt
|
|
|
|
package x
|
|
|
|
operator fun String.provideDelegate(thisRef: Any?, prop: Any?) = this
|
|
|
|
operator fun String.getValue(thisRef: Any?, prop: Any?) = this
|
|
|
|
inline fun foo(): String {
|
|
val x by "OK"
|
|
return x
|
|
}
|
|
|
|
// FILE: 2.kt
|
|
|
|
import x.*
|
|
|
|
fun box(): String = foo()
|