Browse Source

* typecheck for exit(value) : resulttype was not set

pierre 26 years ago
parent
commit
ebd2da41dc
1 changed files with 7 additions and 2 deletions
  1. 7 2
      compiler/pstatmnt.pas

+ 7 - 2
compiler/pstatmnt.pas

@@ -690,7 +690,9 @@ unit pstatmnt;
            end
            end
          else
          else
            p:=nil;
            p:=nil;
-         exit_statement:=gensinglenode(exitn,p);
+         p:=gensinglenode(exitn,p);
+         p^.resulttype:=procinfo.retdef;
+         exit_statement:=p;
       end;
       end;
 
 
 
 
@@ -1286,7 +1288,10 @@ unit pstatmnt;
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.70  1999-03-04 13:55:45  pierre
+  Revision 1.71  1999-03-10 11:23:29  pierre
+   * typecheck for exit(value) : resulttype was not set
+
+  Revision 1.70  1999/03/04 13:55:45  pierre
     * some m68k fixes (still not compilable !)
     * some m68k fixes (still not compilable !)
     * new(tobj) does not give warning if tobj has no VMT !
     * new(tobj) does not give warning if tobj has no VMT !