mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 08:31:30 +00:00
10 lines
146 B
Kotlin
Vendored
10 lines
146 B
Kotlin
Vendored
// "Add else branch" "true"
|
|
enum class Color { R, G, B }
|
|
fun use(c: Color) {
|
|
<caret>when (c) {
|
|
Color.R -> red()
|
|
}
|
|
}
|
|
|
|
fun red() {}
|