Browse Source

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 years ago
parent
commit
9eafb5e7cd
1 changed files with 2 additions and 0 deletions
  1. 2 0
      compiler/pexpr.pas

+ 2 - 0
compiler/pexpr.pas

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