Backticks around the reserved word.
I found this working with JOOQ’s implementation of the SQL IN predicate. You can’t write myJavaLibObject.in(…)
in Kotlin. You’ll get “Element expected” because in
is a reserved word in Kotlin. Instead you need backticks: myJavaLibObject.`in`(…)
will do the trick.