Sfoglia il codice sorgente

* the clause for converting the captured symbols of a nested function must not be entered by an anonymous function

Sven/Sarah Barth 3 anni fa
parent
commit
260368ea55
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      compiler/procdefutil.pas

+ 3 - 0
compiler/procdefutil.pas

@@ -1511,6 +1511,9 @@ implementation
           assigned(pd.capturedsyms) and
           (pd.capturedsyms.count>0) then
         begin
+          if pd.was_anonymous then
+            internalerror(2022081201);
+
           {$ifdef DEBUG_CAPTURER}writeln('Converting symbols of nested function ',pd.procsym.name);{$endif}
 
           { this is a nested function, so rework all symbols that are used from