Browse Source

fcl-passrc: paswrite: prepare type section for enums and unresolved type ref.

git-svn-id: trunk@36786 -
maciej-izak 8 years ago
parent
commit
c025e4cb61
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/fcl-passrc/src/paswrite.pp

+ 1 - 0
packages/fcl-passrc/src/paswrite.pp

@@ -150,6 +150,7 @@ end;
 
 procedure TPasWriter.WriteType(AType: TPasType);
 begin
+  PrepareDeclSection('type');
   if AType.ClassType = TPasUnresolvedTypeRef then
     wrt(AType.Name)
   else if AType.ClassType = TPasClassType then