summaryrefslogtreecommitdiff
path: root/plugins/kotlin/idea/tests/testData/inspectionsLocal/liftOut/whenToAssignment/whenHasMissingCase.kt
blob: 8cd145ff71417988ce4fb520fb112b9a355f4ced (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PROBLEM: none

enum class TestEnum{
    A, B, C
}

fun test(e: TestEnum): Int {
    var res: Int = 0

    <caret>when (e) {
        TestEnum.A -> res = 1
        TestEnum.B -> res = 2
    }

    return res
}