hi, i am trying to get annoations on a function in...
# scripting
n
hi, i am trying to get annoations on a function in a .kts script like so:
Copy code
fun process(@PageResult("page_2") data: String): String {
    return "one + $data"
}
i
I’m not aware of any differences in annotations processing for scripts. Did you tried the same code in a regular .kt file?
n
i did not.. but i can do that later, for now i found a stopgap measure that avoid annotations
actually i did a dumb.. i had my annotation not set to RUNTIME
now it works as expected
👍 2