summaryrefslogtreecommitdiff
path: root/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/SwitchByInaccessibleEnum.java
blob: 7cdd90fece612e258d438a2863623fbf25c7b81a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
interface A {
    B getB();

    class B {
        public C c;

        private enum C {
            SOME
        }
    }
}

class D {
    public static void f(A a) {
        A.B b = a.getB();
        switch (<error descr="A.B.C is inaccessible here">b.c</error>) {
            case SOME:
                break;
        }
    }


}