Is it somehow possible to have "annotation aliases" in Kotlin?
What I want to achieve is to transform this
@Colour("red")
fun method() = "something"
into something like this
annotationalias Red = Colour("red")
@Red
fun method() = "something"
Is it somehow possible to have "annotation aliases" in Kotlin?
What I want to achieve is to transform this
@Colour("red")
fun method() = "something"
into something like this
annotationalias Red = Colour("red")
@Red
fun method() = "something"
© 2022 - 2024 — McMap. All rights reserved.
Red
, and write your own annotation processor that translates it intoColour("red")
. – Absquatulate