fcl-passrc: resolver: fixed unit without implementation

This commit is contained in:
mattias 2020-12-11 17:33:13 +00:00
parent be81221a1d
commit 648a86be7e
2 changed files with 3 additions and 1 deletions

View File

@ -5830,6 +5830,7 @@ begin
begin
// unit
FinishSection(CurModule.InterfaceSection);
if CurModule.ImplementationSection<>nil then
FinishSection(CurModule.ImplementationSection);
if CurModule.FinalizationSection<>nil then
// finalization section finished -> resolve

View File

@ -2680,6 +2680,7 @@ begin
{$IFDEF VerbosePasAnalyzer}
writeln('TPasAnalyzer.EmitSectionHints ',GetElModName(Section));
{$ENDIF}
if Section=nil then exit;
// initialization, program or library sections
aModule:=Section.GetModule;
UsesClause:=Section.UsesClause;