mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
add warning on switch by inaccessible enums (IDEA-65961 )
This commit is contained in:
+23
@@ -0,0 +1,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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user