Procházet zdrojové kódy

For "inherited" the use of helpers must be allowed as well, as those might use a ttypenode of a helper as well.

git-svn-id: branches/svenbarth/classhelpers@17313 -
svenbarth před 14 roky
rodič
revize
9eafb5e7cd
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      compiler/pexpr.pas

+ 2 - 0
compiler/pexpr.pas

@@ -2441,6 +2441,8 @@ implementation
                                 (po_staticmethod in current_procinfo.procdef.procoptions) then
                                hdef:=tclassrefdef.create(hdef);
                              p1:=ctypenode.create(hdef);
+                             { we need to allow helpers here }
+                             ttypenode(p1).helperallowed:=true;
                            end;
                          propertysym:
                            ;