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:
committed by
klunnii
parent
912fd556e5
commit
82d81d5223
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user