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

12 lines
195 B
Java
Raw Normal View History

2014-04-08 00:06:13 +00:00
/*** 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;
}
}