Browse Source

* Merging revisions r46281 from trunk:
------------------------------------------------------------------------
r46281 | michael | 2020-08-06 08:55:06 +0200 (Thu, 06 Aug 2020) | 1 line

* Support writing sets
------------------------------------------------------------------------

git-svn-id: branches/fixes_3_2@46607 -

michael 5 years ago
parent
commit
d4f696a18d
1 changed files with 3 additions and 2 deletions
  1. 3 2
      packages/fcl-passrc/src/paswrite.pp

+ 3 - 2
packages/fcl-passrc/src/paswrite.pp

@@ -289,9 +289,10 @@ begin
     WriteAliasType(TPasAliasType(AType))
     WriteAliasType(TPasAliasType(AType))
   else if AType is TPasPointerType then
   else if AType is TPasPointerType then
     Add(AType.GetDeclaration(true))
     Add(AType.GetDeclaration(true))
+  else if AType is TPasSetType then
+    Add(AType.GetDeclaration(true))
   else
   else
-    raise EPasWriter.Create('Writing not implemented for ' +
-      AType.ElementTypeName + ' nodes');
+    raise EPasWriter.CreateFmt('Writing not implemented for %s type nodes',[aType.ElementTypeName]);
   if Full then
   if Full then
     AddLn(';');
     AddLn(';');
 end;
 end;