Explorar o código

* Support writing sets

git-svn-id: trunk@46281 -
michael %!s(int64=5) %!d(string=hai) anos
pai
achega
a11a242c93
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  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))
   else if AType is TPasPointerType then
     Add(AType.GetDeclaration(true))
+  else if AType is TPasSetType then
+    Add(AType.GetDeclaration(true))
   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
     AddLn(';');
 end;