Files
kotlin-fork/backend.native/tests/external/codegen/boxInline/delegatedProperty/local.kt
T
2017-03-13 15:31:46 +03:00

22 lines
300 B
Kotlin

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