summaryrefslogtreecommitdiff
path: root/plugins/kotlin/idea/tests/testData/quickfix/when/removeRedundantCondition.kt.after
blob: 9161e39ed449ba8e30214a82be6d84923fa165b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
// "Remove condition" "true"
fun foo(): Int = 1

fun println(i: Int) {}

fun main() {
    when (foo()) {
        1 -> println(1)
        else -> println(0)
    }
}