Is it possible to pass parameters to composed anno...
# announcements
k
Is it possible to pass parameters to composed annotations? I'd like to be able to do something like this:
Copy code
@MyAnn("something") fun f() = { ... }
Which would result in annotation being
@SomeOtherAnnotation("someConstantValueDefinedInMyAnn" + "something")
Is that even possible in Kotlin? I know that I can do
Copy code
@SomeOtherAnnotation("someConstantValueDefinedInMyAnn")
annotation class MyAnn
but is it possible to pass arguments to that other annotation?