mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 08:31:30 +00:00
9 lines
205 B
Kotlin
Vendored
9 lines
205 B
Kotlin
Vendored
// "Move else branch to the end" "true"
|
|
fun test() {
|
|
val a = 12
|
|
when (a) {
|
|
1 -> { /* some code */ }
|
|
el<caret>se -> { /* other code */ }
|
|
2 -> { /* some more code */ }
|
|
}
|
|
} |