Files
kotlin-fork/idea/testData/inspectionsLocal/simplifyWhenWithBooleanConstantCondition/falseOnly2.kt
T
2017-11-10 15:34:11 +03:00

10 lines
204 B
Kotlin
Vendored

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