mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 18:39:19 +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);
|
hsym:=next^.search(sym^.name);
|
||||||
{ a parameter and the function can have the same }
|
{ a parameter and the function can have the same }
|
||||||
{ name in TP and Delphi }
|
{ name in TP and Delphi }
|
||||||
if assigned(hsym) and
|
if assigned(hsym) then
|
||||||
(sym^.typ<>funcretsym) then
|
begin
|
||||||
DuplicateSym(hsym);
|
if (sym^.typ<>funcretsym) then
|
||||||
|
DuplicateSym(hsym)
|
||||||
|
else
|
||||||
|
begin
|
||||||
|
sym^.setname('hidden'+sym^.name);
|
||||||
|
end;
|
||||||
|
end;
|
||||||
end
|
end
|
||||||
else if (current_module^.flags and uf_local_browser)=0 then
|
else if (current_module^.flags and uf_local_browser)=0 then
|
||||||
internalerror(43789);
|
internalerror(43789);
|
||||||
@ -2808,7 +2814,10 @@ implementation
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$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/
|
* bug 294 fixed: parameters can have now the same name as the function/
|
||||||
procedure, this is compatible with TP/Delphi
|
procedure, this is compatible with TP/Delphi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user