Files
kotlin-fork/idea/testData/inspectionsLocal/simplifyWhenWithBooleanConstantCondition/falseAndElse3.kt
T
Mikhail Glukhikh 7b2a66c006 Convert 'simplify when' from intention to inspection
Related to KT-20492
2017-11-10 15:34:11 +03:00

11 lines
157 B
Kotlin
Vendored

// WITH_RUNTIME
fun test() {
<caret>when {
false -> {
println(1)
}
else -> {
println(2)
}
}
}