Browse Source

* Fix bug ID #37537: External constant support (also for class consts)

git-svn-id: trunk@46364 -
michael 5 years ago
parent
commit
eb6842920a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-passrc/src/paswrite.pp

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

@@ -739,7 +739,7 @@ begin
       Vart:=LowerCase(Vart);
       if (Value<>'') then
          Decl:=Decl+' = '+Value
-      else if ExportName<>Nil then // external name
+      else if (ExportName<>Nil) or ((Parent is TPasClassType) and (TPasClassType(Parent).ExternalName<>'')) then // external name
         case VarT of
           'integer',
           'byte',