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:
maciej-izak 2017-07-25 13:51:59 +00:00
parent c025e4cb61
commit ddc7631e09

View File

@ -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