浏览代码

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

git-svn-id: trunk@36786 -
maciej-izak 8 年之前
父节点
当前提交
c025e4cb61
共有 1 个文件被更改,包括 1 次插入0 次删除
  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