Преглед изворни кода

* A javaclass is also a objectdef, so the third else..if was ever reached

git-svn-id: branches/joost/classattributes@22971 -
joost пре 13 година
родитељ
комит
88322f1d32
1 измењених фајлова са 1 додато и 3 уклоњено
  1. 1 3
      compiler/symcreat.pas

+ 1 - 3
compiler/symcreat.pas

@@ -977,9 +977,7 @@ implementation
              { not true for the "main" procedure, whose localsymtable is the staticsymtable }
              (tprocdef(def).localst.symtabletype=localsymtable) then
             add_synthetic_method_implementations(tprocdef(def).localst)
-          else if (def.typ=objectdef) then
-            add_synthetic_method_implementations(tobjectdef(def).symtable)
-          else if (is_javaclass(def) and
+          else if ((def.typ=objectdef) and
               not(oo_is_external in tobjectdef(def).objectoptions)) or
               (def.typ=recorddef) then
            begin