Files
kotlin-fork/compiler/testData/codegen/boxInline/delegatedProperty/localInLambda.kt
T
2023-03-14 20:47:46 +00:00

25 lines
331 B
Kotlin
Vendored

// IGNORE_INLINER_K2: IR
// 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()
}