unreachable_code.mj 267 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
/*
 * MiniJava compilers are not allowed to reject programs only because
 * they contain unreachable code, unlike Java compilers.
 */
class UnreachableCode {
    public static void main(String[] args) {
        int i = 42;
        return;
        int j = 23;
    }
}