Move caret into generated else branch

This commit is contained in:
Nikolay Krasko
2012-10-25 18:04:48 +04:00
parent 6a6282b038
commit b62fe5f5fb
4 changed files with 31 additions and 11 deletions
@@ -1,10 +1,10 @@
// "Add else branch" "true"
fun test() {
val a = 12
wh<caret>en (a) {
when (a) {
in 0..11 -> { /* some code */ }
12, 13, 14 -> { /* some code */ }
else -> {
else -> {<caret>
}
}
}
@@ -2,7 +2,7 @@
fun test() {
val a = 12
when (a) {
else -> {
else -> {<caret>
}
}
}