diff options
Diffstat (limited to 'src/test/java/antonio/Test.oj')
-rw-r--r-- | src/test/java/antonio/Test.oj | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/test/java/antonio/Test.oj b/src/test/java/antonio/Test.oj new file mode 100644 index 0000000..b9c9c26 --- /dev/null +++ b/src/test/java/antonio/Test.oj @@ -0,0 +1,36 @@ +package antonio; + +import java.util.*; + +public class Test +{ + public int bbb() { + return 1; + } + + class InnerVector extends Vector { + public int ff = 3; + public int aaa() { + return bbb(); + } + + public int ccc() { + return 0; + } + } + + public void ddd() { + InnerVector v = new InnerVector() { + public int ccc() { + int j = ff; + return aaa(); + } + }; + System.err.println("Result:" + v.ccc()); + } + + + public static void main(String[] args) { + (new Test()).ddd(); + } +} |