Files
kotlin-fork/idea/testData/quickfix/autoImports/invokeExtensionNoOperator.test
T
Valentin Kipyatkov 7625672914 Better test data
2016-09-23 10:07:15 +03:00

48 lines
1.0 KiB
Plaintext
Vendored

// FILE: first.before.kt
// "class org.jetbrains.kotlin.idea.quickfix.ImportFix" "false"
// ERROR: Expression 'Some()' of type 'Some' cannot be invoked as a function. The function 'invoke()' is not found
// ACTION: Create extension function 'Some.invoke'
// ACTION: Create member function 'Some.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")
}
//-----------------------