Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting/IDEADEV13249.java
2010-06-25 12:46:38 +04:00

22 lines
461 B
Java

class TestSuper {
public static class A {
private String s = "A";
public void foo() {
System.out.println("A::foo");
}
}
public static class B extends A {
public void foo() {
super.foo();
System.out.println("B::foo " + super.s);
System.out.println("B::foo " + ((A) this).s);
}
}
public static void main(String[] args) {
new B().foo();
}
}