marcinmoskala
08/19/2017, 12:29 PMclass A {
@get:Arg val a: Int by BoundToValueDelegateProvider()
}
Inside provideDelegate
I have property reference
operator fun provideDelegate(
thisRef: Any?,
prop: KProperty<*>
): ReadWriteProperty<Any, T> {
val annotation1 = prop.getter.findAnnotation<Arg>() // This is null
val annotation2 = prop.javaGetter?.getAnnotation(Arg::class.java) // This is null too
// ...
}
It this bug or expected behavior?kirillrakhman
08/19/2017, 1:44 PMmarcinmoskala
08/20/2017, 6:50 AMmarcinmoskala
08/20/2017, 6:51 AMkirillrakhman
08/20/2017, 3:20 PM