Bladeren bron

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 14 jaren geleden
bovenliggende
commit
9eafb5e7cd
1 gewijzigde bestanden met toevoegingen van 2 en 0 verwijderingen
  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:
                            ;