Files
kotlin-fork/idea/testData/quickfix/autoImports/mismatchingArgs/extensionWrongReceiver.test
T
Mikhail Glukhikh c084eefb65 Fix a bunch of IDE quick-fix tests (related to "convert to run/...")
These actions became available more often some days ago
2019-02-25 10:37:46 +03:00

29 lines
472 B
Plaintext
Vendored

// FILE: first.before.kt
// "Import" "false"
// ERROR: Too many arguments for public final fun foo(): Unit defined in main.X
// ACTION: Add parameter to function 'foo'
// ACTION: Create extension function 'X.foo'
// ACTION: Create member function 'X.foo'
// ACTION: Convert to run
// ACTION: Convert to with
package main
class X {
fun foo() {
}
}
fun f(x: X) {
x.foo(<caret>1)
}
// FILE: second.kt
package other
import main.X
fun String.foo(p: Int) {
}