summaryrefslogtreecommitdiff
path: root/plugins/kotlin/idea/tests/testData/quickfix/when/addRemainingBranchesEnumImport3.kt.after
blob: 808951c189eb0b1d8eff7e04201c2ce27f06a30d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// "Add remaining branches with * import" "true"
// WITH_RUNTIME
import Foo.*

enum class Foo {
    A, B, C
}

enum class Bar {
    A, B, C
}

class Test {
    fun foo(e: Foo) {
        when (e) {
            A -> TODO()
            B -> TODO()
            C -> TODO()
        }
    }
    fun bar(e: Bar) {
        when<caret> (e) {
            Bar.A -> TODO()
            Bar.B -> TODO()
            Bar.C -> TODO()
        }
    }
}
/* IGNORE_FIR */