Browse Source

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

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

Jonas Maebe 14 năm trước cách đây
mục cha
commit
91e06f7139
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      compiler/symcreat.pas

+ 2 - 0
compiler/symcreat.pas

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