Browse Source

* Fix bug id #37513 : type helper declaration incomplete

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

+ 8 - 0
packages/fcl-passrc/src/paswrite.pp

@@ -633,6 +633,14 @@ begin
     okRecordHelper: Add('record helper');
     okClassHelper: Add('class helper');
   end;
+  if (AClass.ObjKind in [okTypeHelper,okRecordHelper,okClassHelper]) then
+    begin
+    if not Assigned(AClass.HelperForType) then
+      Add(' for unknowntype')
+    else
+      Add(' for '+AClass.HelperForType.SafeName)
+    end;
+
   if AClass.IsForward then
     exit;
   if (AClass.ObjKind=okClass) and (ACLass.ExternalName<>'') and NotOption(woNoExternalClass) then