compiler-design-eth/javali_tests/HW4_nop90/Casts/ErrPrimitiveCast2.javali

12 lines
145 B
Plaintext

// Test types in a Cast (cannot cast to unrelated type)
class Main {
void main() {
int a;
boolean b;
//b = false;
a = (int) b;
}
}