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.
42 lines
804 B
Plaintext
Vendored
42 lines
804 B
Plaintext
Vendored
// FILE: first.before.kt
|
|
// "Import" "true"
|
|
// ERROR: Expression 'Some()' of type 'Some' cannot be invoked as a function. The function 'invoke()' is not found
|
|
|
|
package testing
|
|
|
|
import some.Some
|
|
|
|
fun testing() {
|
|
<caret>Some()("str")
|
|
}
|
|
//-----------------------
|
|
|
|
|
|
// FILE: second.kt
|
|
// "Import" "true"
|
|
// ERROR: Expression 'Some()' of type 'Some' cannot be invoked as a function. The function 'invoke()' is not found
|
|
|
|
package some
|
|
|
|
public class Some
|
|
|
|
operator 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
|
|
|
|
package testing
|
|
|
|
import some.Some
|
|
import some.invoke
|
|
|
|
fun testing() {
|
|
<caret>Some()("str")
|
|
}
|
|
//-----------------------
|
|
|
|
|