Files
kotlin-fork/idea/testData/quickfix/when/afterNoElseInWhenWithBranches.kt
T
2012-10-25 18:55:53 +04:00

10 lines
195 B
Kotlin

// "Add else branch" "true"
fun test() {
val a = 12
when (a) {
in 0..11 -> { /* some code */ }
12, 13, 14 -> { /* some code */ }
else -> {<caret>
}
}
}