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

15 lines
218 B
Java

/*** type void in an expression
* COMP 520
* Type Checking
*/
class fail31 {
public static void main(String[] args) {
fail31 f = new fail31();
int x = 1 + f.noresult();
}
void noresult() {}
}