extend test
[IRC.git] / Robust / src / Tests / inner.java
1 public class inner {
2   int outer;
3   int f2;
4
5   public static void main(String x[]) {
6     inner i=new inner();
7     i.dotest();
8   }
9
10   public void dotest() {
11     outer=35;
12     t tmp=new t();
13     tmp.print();
14   }
15
16   public class t extends innerpt {
17     int outer;
18     int f3;
19     public t() {
20       t.this.outer=4;
21       f1=2;
22       f2=3;
23       f3=4;
24
25     }
26
27     public void print() {
28       //should print 4 0 35
29       System.out.println(outer);
30       System.out.println(super.outer);
31       System.out.println(inner.this.outer);
32       System.out.println(f1);
33       System.out.println(f2);
34       System.out.println(f3);
35
36     }
37   }
38
39 }