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; } }