mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 22:39:36 +02:00
* set isclassmethod also for class constructors/destructors in
implement_anon_inherited() git-svn-id: branches/jvmbackend@18480 -
This commit is contained in:
parent
990a4ccb64
commit
33bd3d7aa9
@ -204,9 +204,7 @@ implementation
|
|||||||
str: ansistring;
|
str: ansistring;
|
||||||
isclassmethod: boolean;
|
isclassmethod: boolean;
|
||||||
begin
|
begin
|
||||||
isclassmethod:=
|
isclassmethod:=(po_classmethod in pd.procoptions);
|
||||||
(po_classmethod in pd.procoptions) and
|
|
||||||
not(pd.proctypeoption in [potype_constructor,potype_destructor]);
|
|
||||||
str:=pd.customprocname([pno_proctypeoption,pno_paranames,pno_ownername,pno_noclassmarker,pno_noleadingdollar]);
|
str:=pd.customprocname([pno_proctypeoption,pno_paranames,pno_ownername,pno_noclassmarker,pno_noleadingdollar]);
|
||||||
str:=str+'begin inherited end;';
|
str:=str+'begin inherited end;';
|
||||||
str_parse_method_impl(str,isclassmethod);
|
str_parse_method_impl(str,isclassmethod);
|
||||||
|
Loading…
Reference in New Issue
Block a user