Branch: Tag:

1997-05-22

1997-05-22 23:27:33 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

return on void expressions now gives an error

Rev: src/las.c:1.34
Rev: src/testsuite.in:1.43

4:   ||| See the files COPYING and DISCLAIMER for more information.   \*/   #include "global.h" - RCSID("$Id: las.c,v 1.33 1997/05/19 23:31:01 hubbe Exp $"); + RCSID("$Id: las.c,v 1.34 1997/05/22 23:27:32 hubbe Exp $");      #include "language.h"   #include "interpret.h"
1278:    break;       case F_RETURN: +  if(CAR(n)->type == void_type_string) +  { +  yyerror("You cannot return a void expression"); +  }    if(local_variables &&    local_variables->current_return_type &&    !match_types(local_variables->current_return_type,CAR(n)->type) &&