mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
12 lines
305 B
Kotlin
12 lines
305 B
Kotlin
// "Add else branch" "true"
|
|
enum class Color { R, G, B }
|
|
fun use(c: Color) {
|
|
<caret>when (c) {
|
|
Color.R -> red()
|
|
}
|
|
}
|
|
|
|
fun red() {}
|
|
|
|
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddWhenElseBranchFix
|
|
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddWhenElseBranchFix |