Get Function Annotations from Parent Class in Kotlin
Say I have the following situation:
abstract class Foo {
abstract fun bar();
fun baz() {
println(this::bar.annotations)
}
}
class Qux : Foo {
@Annotation
override fun bar() {
...
}
}
When I try to implement this it does not get the annotations as defined in the child class, it gets them as defined in the parent class. If I remember correctly Java used to do the former, which is what I’m attempting to do here. My goal output is for it to print the...