Change Signature: Do not move lambda out of parentheses if it neither wasn't out

before nor corresponds to the last parameter after the refactoring
 #KT-9763 Fixed
This commit is contained in:
Alexey Sedunov
2015-11-02 14:58:16 +03:00
parent f5e9d3e58f
commit 2476393754
4 changed files with 36 additions and 9 deletions
@@ -0,0 +1,5 @@
fun <caret>foo(p2: Int, p1: Int, filter: (Int) -> Boolean, p3: Int = 0){}
fun bar() {
foo(2, 1, { true })
}
@@ -0,0 +1,5 @@
fun <caret>foo(p1: Int, p2: Int, filter: (Int) -> Boolean, p3: Int = 0){}
fun bar() {
foo(1, 2, { true })
}