Hello ,
I need to annotate getter method or return value for property declared in trait.
Is it possible ?
annotation class fancy {}
trait Foo {
// where is annotation added ?, no compilation error
[fancy]
var bar1: String
// this should add annotation to return of getter ? but it’s not there
var bar2: [fancy] String
// error: backed field not allowed in trait
// but I want just to add annotation to get()
var bar3: String?
[fancy]
get() = ?
}
thanks, Tibor