Fix double quotes in diagnostic messages
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.
This commit is contained in:
+1
-1
@@ -264,5 +264,5 @@ fun inForLoop(x: Any?) {
|
||||
if (x is Array<*>) {
|
||||
for (i in <info descr="Smart cast to kotlin.Array<*>">x</info>) {}
|
||||
}
|
||||
for (i in <error descr="[ITERATOR_MISSING] For-loop range must have an iterator() method">x</error>) {}
|
||||
for (i in <error descr="[ITERATOR_MISSING] For-loop range must have an 'iterator()' method">x</error>) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user