mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
java highlighting tests moved to community
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user