import kotlin.reflect.KProperty class SomeProp() { fun getValue(t: Any, metadata: KProperty<*>) = 42 } class Some() { val renderer by SomeProp() }