Move lambda out: don't remove block comments
#KT-35357 Fixed
This commit is contained in:
committed by
klunnii
parent
6670e4b21d
commit
17176c00ae
@@ -0,0 +1,5 @@
|
||||
fun foo(f: () -> Unit) {}
|
||||
|
||||
fun test() {
|
||||
foo(/* c1 */ <caret>{ /* c2 */ } /* c3 */)
|
||||
}
|
||||
+5
@@ -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 */)
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
fun foo(i: Int, f: () -> Unit) {}
|
||||
|
||||
fun test() {
|
||||
foo(1) /* c1 */ /* c2 */ { /* c3 */ } /* c4 */ /* c5 */
|
||||
}
|
||||
+1
-1
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user