浏览代码

generate_specialization needs to return the correct generic def if the parent classes are parsed, so that that the usage of generic interfaces is allowed.

This fixes the compilation of test tests\test\tgeneric29.pp and the reminder in pdecobj.pas is not needed anymore.

Note: Perhaps this behavior should be enabled in general if "parse_generic" is true (and not only if parse_parent_class if true as well).

git-svn-id: branches/svenbarth/generics@19426 -
svenbarth 14 年之前
父节点
当前提交
988c799b0e
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      compiler/pdecobj.pas

+ 0 - 1
compiler/pdecobj.pas

@@ -308,7 +308,6 @@ implementation
           begin
           begin
              { use single_type instead of id_type for specialize support }
              { use single_type instead of id_type for specialize support }
              single_type(hdef,[stoAllowSpecialization,stoParseClassParent]);
              single_type(hdef,[stoAllowSpecialization,stoParseClassParent]);
-             { TODO : handle a generic interface }
              if (hdef.typ<>objectdef) then
              if (hdef.typ<>objectdef) then
                begin
                begin
                   if intf then
                   if intf then