Move lambda out: don't remove block comments

#KT-35357 Fixed
This commit is contained in:
Toshiaki Kameyama
2020-06-09 16:35:56 +09:00
committed by klunnii
parent 6670e4b21d
commit 17176c00ae
7 changed files with 55 additions and 2 deletions
@@ -0,0 +1,5 @@
fun foo(f: () -> Unit) {}
fun test() {
foo(/* c1 */ <caret>{ /* c2 */ } /* c3 */)
}
@@ -0,0 +1,5 @@
fun foo(f: () -> Unit) {}
fun test() {
foo /* c1 */ { /* c2 */ } /* c3 */
}
@@ -0,0 +1,5 @@
fun foo(i: Int, f: () -> Unit) {}
fun test() {
foo(1, /* c1 */ /* c2 */ <caret>{ /* c3 */ } /* c4 */ /* c5 */)
}
@@ -0,0 +1,5 @@
fun foo(i: Int, f: () -> Unit) {}
fun test() {
foo(1) /* c1 */ /* c2 */ { /* c3 */ } /* c4 */ /* c5 */
}
@@ -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)
}
}