WrongReturnTypeVoid.invalid.mj 175 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
class WrongReturnTypeVoid {

    public static void main(String[] args) {}


    public void a() {
        /*should not allow return of integer*/
        return 5;
    }

}