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

12 lines
145 B
Text
Raw Permalink Normal View History

2020-01-15 22:34:57 +01:00
// Test types in a Cast (cannot cast to unrelated type)
class Main {
void main() {
int a;
boolean b;
//b = false;
a = (int) b;
}
}