0b64f028b6
org.jetbrains.jet.plugin.quickfix -> org.jetbrains.kotlin.idea.quickfix
17 lines
490 B
Kotlin
17 lines
490 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 */ }
|
|
}
|
|
}
|