If to when conversion preserves comments too
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
fun foo(b: Boolean) {
|
||||
<caret>if (b) 1 // 1
|
||||
else 2
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
fun foo(b: Boolean) {
|
||||
when {
|
||||
b -> 1 // 1
|
||||
else -> 2
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user