* Patch from Henrique Werlang to improve generation of IsImpl (bug ID 37510)

git-svn-id: trunk@46423 -
This commit is contained in:
michael 2020-08-14 10:24:24 +00:00
parent 67d2c51b8d
commit 2c545f3afe

View File

@ -906,7 +906,7 @@ Var
begin
IsImpl:=AProc.Parent is TPasSection;
IsImpl:=AProc.Parent is TImplementationSection;
if IsImpl then
PrepareDeclSection('');
if Not IsImpl then
@ -928,7 +928,7 @@ begin
Add(' reintroduce;');
// if NamePrefix is not empty, we're writing a dummy for external class methods.
// In that case, we must not write the 'overload'.
if AProc.IsOverload and (NamePrefix='') then
if AProc.IsOverload and (NamePrefix='') and not IsImpl then
Add(' overload;');
if not IsImpl then
begin