compiler-design-eth/javali_tests/HW4_nop90/OkNullAssignment.javali
2020-01-15 22:38:07 +01:00

16 lines
No EOL
265 B
Text

/* testing null references:
assigning null to an int or a boolean results in an error
write(null) results in a parser failure
*/
class Main {
void main() {
int a;
boolean b;
Object c;
c = null;
write(a);
writeln();
}
}