Hello, is it possible to create custom `Suppress` ...
# random
d
Hello, is it possible to create custom
Suppress
annotation? I.e.
@PublicAPI
instead of use
Suppress("MemberVisibilityCanBePrivate") // Public API
g
Have you tried to use meta annotations?
not sure that it will work, but why not
d
I don’t know what you talking about honestly 😛 I’ll take a look, thanks 🙂
g
annotation, annotated by another annotation
d
😯 I’m trying 🙂
It works 😵
It works only on declared member 😞
Copy code
@PublicApi
class Something {
    fun callTest() = test()

    fun test() {  } // warn here
}
Ok if I put the annotation above
test()
directly
Edit: It doesn’t work, the behaviour is very weird, sometimes it works, sometimes doesn’t