Files
kotlin-fork/compiler/testData/codegen/boxInline/delegatedProperty/localInLambda.kt
T
2019-10-02 14:48:05 +02:00

24 lines
306 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 b by Delegate()
return run {
b
}
}
// FILE: 2.kt
import test.*
fun box(): String {
return test()
}