Files
kotlin-fork/idea/testData/quickfix/autoImports/invokeExtensionNoOperator.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

48 lines
976 B
Plaintext
Vendored

// FILE: first.before.kt
// "Import" "false"
// 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'
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
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
// ACTION: Create extension function 'invoke'
// ACTION: Create member function 'invoke'
package testing
import some.Some
import some.invoke
fun testing() {
<caret>Some()("str")
}
//-----------------------