mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-06 02:27:48 +02:00
fcl-passrc: resolver: fixed unit without implementation
This commit is contained in:
parent
be81221a1d
commit
648a86be7e
@ -5830,7 +5830,8 @@ begin
|
||||
begin
|
||||
// unit
|
||||
FinishSection(CurModule.InterfaceSection);
|
||||
FinishSection(CurModule.ImplementationSection);
|
||||
if CurModule.ImplementationSection<>nil then
|
||||
FinishSection(CurModule.ImplementationSection);
|
||||
if CurModule.FinalizationSection<>nil then
|
||||
// finalization section finished -> resolve
|
||||
ResolveImplBlock(CurModule.FinalizationSection);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user