Add "Remove argument" quick fix for TOO_MANY_ARGUMENTS

#KT-34026 Fixed
#KT-34332 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-12-13 08:48:04 +01:00
committed by Vladimir Dolzhenko
parent 13afb2e45e
commit d54a35ef56
16 changed files with 187 additions and 0 deletions
@@ -0,0 +1,16 @@
// "Remove argument" "false"
// ACTION: Add 'i =' to argument
// ACTION: Convert to also
// ACTION: Convert to apply
// ACTION: Convert to run
// ACTION: Convert to with
// ACTION: Put arguments on separate lines
class Bar() {
fun foo(s: String, i: Int) {
}
}
fun main() {
val b = Bar()
b.foo("a", 1<caret>)
}