compiler-design-eth/javali_tests/HW2_nop90/invalidCasts.javali
Carlos Galindo bf60a078d7
Homework 2
2020-01-15 22:30:09 +01:00

12 lines
No EOL
180 B
Text
Executable file

/* testing invalid casts */
class Main
{
void main()
{
int a;
Object d;
d = new Object();
a = (Object) d;
a = (boolean[]) a;
}
}