"Add else branch" on when quickfix: don't add braces #KT-5088 Fixed

This commit is contained in:
Toshiaki Kameyama
2018-10-01 14:15:38 +03:00
committed by Mikhail Glukhikh
parent f22133be7e
commit 57ae60e9dc
4 changed files with 13 additions and 10 deletions
@@ -3,8 +3,7 @@ enum class Color { R, G, B }
fun use(c: Color) {
when (c) {
Color.R -> red()
else -> {
}
else -> <caret>
}
}
@@ -4,7 +4,6 @@ fun test() {
val x = when (a) {
in 0..11 -> { /* some code */ }
12, 13, 14 -> { /* some code */ }
else -> {<caret>
}
else -> <caret>
}
}
@@ -2,7 +2,6 @@
fun test() {
val a = 12
val x = when (a) {
else -> {<caret>
}
else -> <caret>
}
}