I have a problem with getting getter annotation fr...
# kontributors
m
I have a problem with getting getter annotation from property reference. Here is annotation:
Copy code
class A {
    @get:Arg val a: Int by BoundToValueDelegateProvider()
}
Inside
provideDelegate
I have property reference
Copy code
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?
k
are you sure this is #kontributors related?
m
I added it here because it looks like bug
Where would you add it?
k
You can ask about bugs in every channel, #general or in this case maybe #reflect