c084eefb65
These actions became available more often some days ago
29 lines
472 B
Plaintext
Vendored
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) {
|
|
}
|