compiler-design-eth/javali_tests/HW3_nop90/NoSuchSymbolErrors/NoSuchVariable.javali

28 lines
311 B
Text
Raw Permalink Normal View History

2020-01-15 22:32:25 +01:00
// Test NO SUCH VARIABLE
// All referenced variables must exist.
class Main extends Other {
int a;
int b;
int C;
Object notC;
void main() {
int a;
boolean b;
write(c + 1);
}
}
class Other {
boolean a;
boolean b;
boolean C;
Object[] notC;
void main() {
int a;
boolean b;
Object c;
}
}