mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Original commit: 9cadd1c8a754fe111df071adea6afc349fba3744 GitOrigin-RevId: 6edc7719d2fe1d495285024eef5bf5ee7d8ae3eb
16 lines
489 B
Kotlin
16 lines
489 B
Kotlin
// "class org.jetbrains.kotlin.idea.quickfix.MoveWhenElseBranchFix" "false"
|
|
// ERROR: 'else' entry must be the last one in a when-expression
|
|
// ERROR: 'else' entry must be the last one in a when-expression
|
|
// WARNING: Unreachable code
|
|
// WARNING: Unreachable code
|
|
package foo
|
|
|
|
fun foo() {
|
|
var i = 2
|
|
when (i) {
|
|
1, 2 -> { /* some code */ }
|
|
el<caret>se -> { /* first else branch */ }
|
|
else -> { /* second else branch */ }
|
|
3 -> { /* some other code */ }
|
|
}
|
|
} |