If to when conversion preserves comments too

This commit is contained in:
Valentin Kipyatkov
2016-02-11 21:41:24 +03:00
parent 0ed8eb0512
commit ce54a2d4bd
4 changed files with 21 additions and 1 deletions
@@ -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
}
}