1 2 3 4 5 6 7 8 9 10
// "Add else branch" "true" enum class Color { R, G, B } fun use(c: Color) { when (c) { Color.R -> red() else -> {<caret>} } } fun red() {}