compiler-design-eth/javali_tests/from_prev_HW/Casts.javali

16 lines
246 B
Text
Raw Normal View History

2020-01-15 22:32:25 +01:00
/* testing casting as well as creating new Objects*/
class Main
{
void main()
{
int a;
int b;
Object c;
Object d;
c = null;
d = new Object();
a = 10;
c = (Object) d;
}
}