Files
kotlin-fork/compiler/testData/codegen/box/delegatedProperty/local/inlineGetValue.kt
T

13 lines
211 B
Kotlin
Vendored

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
}