Просмотр исходного кода

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

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

Jonas Maebe 14 лет назад
Родитель
Сommit
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
                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);