Introduce Parameter: Do not remove unused parameters if new parameter is extracted with default value

This commit is contained in:
Alexey Sedunov
2015-04-16 14:16:38 +03:00
parent 6e2076d602
commit bf13f7e637
4 changed files with 17 additions and 13 deletions
@@ -1,7 +1,7 @@
fun foo(s: String, i: Int = a + b): Int {
fun foo(a: Int, s: String, b: Int, i: Int = a + b): Int {
return i * 2
}
fun test() {
foo("2")
foo(1, "2", 3)
}