فهرست منبع

* make sure the calcparas() is called when calling getcopyas() on a
procvardef

git-svn-id: trunk@30371 -

Jonas Maebe 10 سال پیش
والد
کامیت
c32b6b01ad
1فایلهای تغییر یافته به همراه8 افزوده شده و 0 حذف شده
  1. 8 0
      compiler/symdef.pas

+ 8 - 0
compiler/symdef.pas

@@ -615,6 +615,7 @@ interface
           function  is_methodpointer:boolean;override;
           function  is_addressonly:boolean;override;
           function  getmangledparaname:TSymStr;override;
+          function getcopyas(newtyp: tdeftyp; copytyp: tproccopytyp): tstoreddef; override;
        end;
        tprocvardefclass = class of tprocvardef;
 
@@ -5935,6 +5936,13 @@ implementation
       end;
 
 
+    function tprocvardef.getcopyas(newtyp: tdeftyp; copytyp: tproccopytyp): tstoreddef;
+      begin
+        result:=inherited;
+        tabstractprocdef(result).calcparas;
+      end;
+
+
     function tprocvardef.is_publishable : boolean;
       begin
          is_publishable:=(po_methodpointer in procoptions);