Annotation alias

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"
1 Like