8316953259
For diagnostics without any parameters, the given text is simply rendered as a String, so no symbols should be escaped. For diagnostics with parameters, the format in java.text.MessageFormat is used, so one single quote is erased and two single quotes become one single quote in the rendered text.
10 lines
269 B
Kotlin
Vendored
10 lines
269 B
Kotlin
Vendored
// IS_APPLICABLE: false
|
|
// ERROR: 'operator' modifier is inapplicable on this function: must have no value parameters
|
|
fun test() {
|
|
class Test {
|
|
operator fun unaryPlus(fn: () -> Unit): Test = Test()
|
|
}
|
|
val test = Test()
|
|
test.unaryPl<caret>us {}
|
|
}
|