浏览代码

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 年之前
父节点
当前提交
9eafb5e7cd
共有 1 个文件被更改,包括 2 次插入0 次删除
  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:
                            ;