Files
kotlin-fork/compiler/testData/codegen/boxInline/delegatedProperty/localInLambda.kt
T
2018-06-28 12:26:41 +02:00

25 lines
332 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_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()
}