How Kotlin Enables Syntax Highlighting for Operator Overloading with @Language Annotation

Answered

I use the @Language annotation on String type parameters in normal functions, and IDEA provides proper suggestions. However, there is no suggestion when overloading String.


Additionally, with @Language annotation on vararg args: String parameters, only the first argument is effective.

 

For example:



 

 

0
1 comment
It is a known problem. Feel free to follow the issue — https://youtrack.jetbrains.com/issue/KTIJ-5644.
0

Please sign in to leave a comment.