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,5 +1,5 @@
|
||||
// "Add 'operator' modifier" "true"
|
||||
// ERROR: operator modifier is required on 'component2' in 'A'
|
||||
// ERROR: 'operator' modifier is required on 'component2' in 'A'
|
||||
|
||||
class A {
|
||||
operator fun component1(): Int = 0
|
||||
|
||||
Reference in New Issue
Block a user