Allow to move "when entry" at closing brace

This commit is contained in:
Alexey Sedunov
2013-05-31 19:23:27 +04:00
parent 2cc163cd90
commit 30e333c670
7 changed files with 50 additions and 5 deletions
@@ -1,4 +1,3 @@
// IS_APPLICABLE: false
// MOVE: up
fun foo(n: Int) {
@@ -0,0 +1,16 @@
// MOVE: up
fun foo(n: Int) {
when (n) {
0 -> {
}
else -> {
}<caret>
1 -> {
}
}
val x = ""
}
@@ -1,4 +1,3 @@
// IS_APPLICABLE: false
// MOVE: down
fun foo(n: Int) {
@@ -0,0 +1,16 @@
// MOVE: down
fun foo(n: Int) {
when (n) {
0 -> {
}
else -> {
}
1 -> {
}<caret>
}
val x = ""
}
@@ -1,4 +1,3 @@
// IS_APPLICABLE: false
// MOVE: up
fun foo(n: Int) {
@@ -0,0 +1,16 @@
// MOVE: up
fun foo(n: Int) {
when (n) {
1 -> {
}<caret>
0 -> {
}
else -> {
}
}
val x = ""
}