https://kotlinlang.org logo
Title
y

Youssef Shoaib [MOD]

04/22/2023, 10:46 PM
IDEA question: language injection doesn't seem to work for operator functions (in my cause
unaryPlus
). Is that intended behaviour?
a

Adam S

04/23/2023, 6:49 AM
the
@Language
injection thing is basically limited to Java-only functionality. It’s a Java-only annotation, so it doesn’t work on Kotlin things like receivers, or infix functions params. That doesn’t mean it can’t, but the annotation and IntelliJ functionality needs to be updated. Or someone needs to create a custom IJ plugin…