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

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()