field_access_type_error.invalid.mj 204 Bytes
Newer Older
uiekn's avatar
uiekn committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class C1 {

    public int x;
}

class C2 {

    public C1 x;
}

class TypeError {

    public static void main(String[] args) {
        boolean b;
        C2 obj = new C2();
        b = obj.x.x;
    }
}