mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-06 05:10:22 +07:00
17 lines
610 B
Java
17 lines
610 B
Java
package p1;
|
|
|
|
import p2.B;
|
|
|
|
public class C extends B {
|
|
void f(){
|
|
System.out.println(<error descr="'FOO' is not public in 'p1.A'. Cannot be accessed from outside package">FOO</error>);
|
|
<error descr="'foo()' is not public in 'p1.A'. Cannot be accessed from outside package">foo</error>();
|
|
|
|
System.out.println(A.FOO);
|
|
A.foo();
|
|
|
|
System.out.println(B.<error descr="'FOO' is not public in 'p1.A'. Cannot be accessed from outside package">FOO</error>);
|
|
B.<error descr="'foo()' is not public in 'p1.A'. Cannot be accessed from outside package">foo</error>();
|
|
}
|
|
}
|