Files
Mikhail Glukhikh 38b70e8423 Convert 'simplify when' from intention to inspection
Related to KT-20492

GitOrigin-RevId: e3389a9c167173c76132a827673fb9892e59b7d5
2017-11-10 15:34:11 +03:00

6 lines
141 B
Kotlin

// ERROR: 'when' expression must be exhaustive, add necessary 'else' branch
fun test() {
val x = <caret>when {
false -> 1
}
}