marcinmoskala
08/20/2017, 3:56 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?diesieben07
08/20/2017, 4:37 PMmarcinmoskala
08/20/2017, 8:29 PM