Files
kotlin-fork/idea/testData/quickfix/when/afterNoElseInWhenWithBranches.kt
T

10 lines
203 B
Kotlin

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