Explorar o código

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

git-svn-id: trunk@36786 -
maciej-izak %!s(int64=8) %!d(string=hai) anos
pai
achega
c025e4cb61
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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