compiler-design-eth/javali_tests/HW4_nop90/Fields/OkObjectFields.javali

20 lines
181 B
Text
Raw Normal View History

2020-01-15 22:34:57 +01:00
// test an Array of Objects and access their field
class Main {
void main() {
D[] x;
x = new D[50];
x[22].c.a = 2;
}
}
class C{
int a;
}
class D {
C c;
}