fix empty return statement compiler to generate error