mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 15:47:53 +02:00
fcl-passrc: paswrite: prepare 'type' section for types only when type has parent like module interface section etc.
git-svn-id: trunk@36787 -
This commit is contained in:
parent
c025e4cb61
commit
ddc7631e09
@ -150,7 +150,8 @@ end;
|
||||
|
||||
procedure TPasWriter.WriteType(AType: TPasType);
|
||||
begin
|
||||
PrepareDeclSection('type');
|
||||
if AType.Parent is TPasSection then
|
||||
PrepareDeclSection('type');
|
||||
if AType.ClassType = TPasUnresolvedTypeRef then
|
||||
wrt(AType.Name)
|
||||
else if AType.ClassType = TPasClassType then
|
||||
|
Loading…
Reference in New Issue
Block a user