mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 15:53:46 +00:00
12 lines
167 B
Plaintext
Vendored
12 lines
167 B
Plaintext
Vendored
// "Add else branch" "true"
|
|
enum class Color { R, G, B }
|
|
fun use(c: Color) {
|
|
when (c) {
|
|
Color.R -> red()
|
|
else -> {
|
|
}
|
|
}
|
|
}
|
|
|
|
fun red() {}
|