https://kotlinlang.org logo
#scripting
Title
# scripting
n

Nikky

02/22/2019, 2:09 AM
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

ilya.chernikov

02/22/2019, 10:40 AM
I’m not aware of any differences in annotations processing for scripts. Did you tried the same code in a regular .kt file?
n

Nikky

02/22/2019, 2:09 PM
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