Files
kotlin-fork/idea/testData/quickfix/autoImports/mismatchingArgs/topLevelFun_notWithReceiver.test
T
Vladimir Dolzhenko afd71d3d19 Adjust tests due to "Remove argument" quick fix for TOO_MANY_ARGUMENTS
Relates to #KT-34026
Relates to #KT-34332
2020-02-25 09:23:46 +01:00

25 lines
434 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: Remove argument
package main
class X {
fun foo() {
}
fun f() {
this.foo(<caret>1)
}
}
// FILE: second.kt
package other
fun foo(p: Int) {
}