mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 08:49:26 +02:00
* fix bug #294 in a BP compatible way ie. hidding the function result
This commit is contained in:
parent
36df88a15d
commit
861a491bbd
@ -1790,9 +1790,15 @@ implementation
|
||||
hsym:=next^.search(sym^.name);
|
||||
{ a parameter and the function can have the same }
|
||||
{ name in TP and Delphi }
|
||||
if assigned(hsym) and
|
||||
(sym^.typ<>funcretsym) then
|
||||
DuplicateSym(hsym);
|
||||
if assigned(hsym) then
|
||||
begin
|
||||
if (sym^.typ<>funcretsym) then
|
||||
DuplicateSym(hsym)
|
||||
else
|
||||
begin
|
||||
sym^.setname('hidden'+sym^.name);
|
||||
end;
|
||||
end;
|
||||
end
|
||||
else if (current_module^.flags and uf_local_browser)=0 then
|
||||
internalerror(43789);
|
||||
@ -2808,7 +2814,10 @@ implementation
|
||||
end.
|
||||
{
|
||||
$Log$
|
||||
Revision 1.82 2000-03-22 09:25:57 florian
|
||||
Revision 1.83 2000-03-27 21:15:34 pierre
|
||||
* fix bug 294 in a BP compatible way ie. hidding the function result
|
||||
|
||||
Revision 1.82 2000/03/22 09:25:57 florian
|
||||
* bug 294 fixed: parameters can have now the same name as the function/
|
||||
procedure, this is compatible with TP/Delphi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user