Change Signature: move lambda outside of parentheses if the arguments are reordered so that the lambda goes last

#KT-30128 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-02-27 00:08:23 +09:00
committed by klunnii
parent 912fd556e5
commit 82d81d5223
4 changed files with 23 additions and 0 deletions
@@ -0,0 +1,6 @@
fun <caret>foo(y: Int, x: () -> Unit) {
}
fun test() {
foo(1) { 2 }
}
@@ -0,0 +1,6 @@
fun <caret>foo(x: () -> Unit, y: Int) {
}
fun test() {
foo({ 2 }, 1)
}