summaryrefslogtreecommitdiff
path: root/plugins/kotlin/idea/tests/testData/quickfix/when/addRemainingBranchesEnumImport3.kt
blob: 18aff34f34cb91934fca8b68c0a954b58fc0ae19 (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
// "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) {
        }
    }
}