1
Fork 0
mini-java/miniJava/tests/pa3_tests/fail337.java

12 lines
195 B
Java

/*** non-boolean result type in expr of conditional
* COMP 520
* Type checking
*/
class bob {
public static void main(String [] args) {
int x = 3;
if (x)
x = x + 1;
}
}