mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-26 20:50:54 +07:00
16 lines
355 B
Java
16 lines
355 B
Java
package x;
|
|
public class A extends D{
|
|
int k;
|
|
static void staticF() {}
|
|
}
|
|
class C extends x.sub.B {
|
|
int n=<error descr="'k' is not public in 'x.A'. Cannot be accessed from outside package">k</error>;
|
|
|
|
// can call despite inherited through package-private from other package
|
|
void f() { A.staticF(); }
|
|
}
|
|
|
|
class D{
|
|
public void foo(){}
|
|
}
|