Files
Andrey Cherkasov 514b70a053 [kotlin] Port MoveWhenElseBranchFix to K2
^KTIJ-29518

GitOrigin-RevId: 9a9b4c59ce3714c0c80a4ee3de54d1652d0ee91c
2024-07-24 21:13:14 +00:00

12 lines
367 B
Plaintext

// "Move else branch to the end" "true"
fun test() {
val a = 12
when (a) {
1 -> { /* some code */ }
2 -> { /* some more code */ }
el<caret>se -> { /* other code */ }
}
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.MoveWhenElseBranchFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.MoveWhenElseBranchFix