Better implementation of "Move lambda outside parenthesis"

This commit is contained in:
Valentin Kipyatkov
2015-05-22 13:54:52 +03:00
parent 3bca1d1f83
commit d7c64d44b6
10 changed files with 57 additions and 49 deletions
@@ -3,7 +3,7 @@ fun bar(a: Int, b: Int, f: () -> Unit) {}
fun foo(a: Int, b: Int) = 2
fun test() {
bar(1, 2) {
bar(1, 2 /* , , */) {
val a = foo(1, 2)
}
}