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