Files
kotlin-fork/compiler/testData/codegen/box/delegatedProperty/local/inlineGetValue.kt
T
2019-11-19 11:00:09 +03:00

14 lines
241 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: 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
}