Browse Source

* set isclassmethod also for class constructors/destructors in
implement_anon_inherited()

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

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

+ 1 - 3
compiler/symcreat.pas

@@ -204,9 +204,7 @@ implementation
       str: ansistring;
       isclassmethod: boolean;
     begin
-      isclassmethod:=
-        (po_classmethod in pd.procoptions) and
-        not(pd.proctypeoption in [potype_constructor,potype_destructor]);
+      isclassmethod:=(po_classmethod in pd.procoptions);
       str:=pd.customprocname([pno_proctypeoption,pno_paranames,pno_ownername,pno_noclassmarker,pno_noleadingdollar]);
       str:=str+'begin inherited end;';
       str_parse_method_impl(str,isclassmethod);