浏览代码

* also process nested records/objects when generating implementations
for synthetic methods

git-svn-id: branches/jvmbackend@18474 -

Jonas Maebe 14 年之前
父节点
当前提交
91e06f7139
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      compiler/symcreat.pas

+ 2 - 0
compiler/symcreat.pas

@@ -350,6 +350,8 @@ implementation
              if not sstate.valid then
              if not sstate.valid then
                replace_scanner('synthetic_impl',sstate);
                replace_scanner('synthetic_impl',sstate);
             add_synthetic_method_implementations_for_struct(tabstractrecorddef(def));
             add_synthetic_method_implementations_for_struct(tabstractrecorddef(def));
+            { also complete nested types }
+            add_synthetic_method_implementations(tabstractrecorddef(def).symtable);
            end;
            end;
         end;
         end;
       restore_scanner(sstate);
       restore_scanner(sstate);