How Kotlin Enables Syntax Highlighting for Operator Overloading with @Language Annotation
已回答
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:
1 条评论
排序方式
日期
投票数

It is a known problem. Feel free to follow the issue — https://youtrack.jetbrains.com/issue/KTIJ-5644.
请先登录再写评论。