Files
kotlin-fork/idea/testData/quickfix/autoImports/invokeExtension.test
T
Alexander Udalov 8316953259 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.
2016-03-30 21:41:43 +03:00

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")
}
//-----------------------