Files
kotlin-fork/compiler/testData/codegen/box/delegatedProperty/local/inlineGetValue.kt
T
2018-08-15 13:35:14 +03:00

14 lines
237 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
package foo
import kotlin.reflect.KProperty
class Delegate {
inline operator fun getValue(t: Any?, p: KProperty<*>): String = p.name
}
fun box(): String {
val OK: String by Delegate()
return OK
}