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,6 +1,6 @@
|
||||
// FILE: first.before.kt
|
||||
// "Import" "false"
|
||||
// ERROR: Expression 'Some()' of type 'Some' cannot be invoked as a function. The function invoke() is not found
|
||||
// ERROR: Expression 'Some()' of type 'Some' cannot be invoked as a function. The function 'invoke()' is not found
|
||||
// ACTION: Create extension function 'invoke'
|
||||
// ACTION: Create member function 'invoke'
|
||||
|
||||
@@ -17,7 +17,7 @@ fun testing() {
|
||||
|
||||
// FILE: second.kt
|
||||
// "Import" "true"
|
||||
// ERROR: Expression 'Some()' of type 'Some' cannot be invoked as a function. The function invoke() is not found
|
||||
// ERROR: Expression 'Some()' of type 'Some' cannot be invoked as a function. The function 'invoke()' is not found
|
||||
|
||||
package some
|
||||
|
||||
@@ -29,7 +29,7 @@ fun Some.invoke(s: String) {}
|
||||
|
||||
// FILE: first.after.kt
|
||||
// "Import" "true"
|
||||
// ERROR: Expression 'Some()' of type 'Some' cannot be invoked as a function. The function invoke() is not found
|
||||
// ERROR: Expression 'Some()' of type 'Some' cannot be invoked as a function. The function 'invoke()' is not found
|
||||
// ACTION: Create extension function 'invoke'
|
||||
// ACTION: Create member function 'invoke'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user