mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-07 06:33:14 +02:00

`fdfFunctionResult` will cause `FindExpressionTypeOfTerm` to `ResolveChildren` and recurse forever if the node starts with open brackets. If the cursor is not on an identifier, it should not be a function and the flag is not needed.
21 lines
204 B
ObjectPascal
21 lines
204 B
ObjectPascal
program bug39897;
|
|
{$mode objfpc}{$H+}
|
|
uses
|
|
Classes;
|
|
|
|
const
|
|
b = $1;
|
|
a = ((b)+1);
|
|
procedure foo(x,y: byte);
|
|
begin
|
|
end;
|
|
procedure foo(x,y: word);
|
|
begin
|
|
end;
|
|
|
|
|
|
begin
|
|
foo{declaration:foo}(b, a);
|
|
end.
|
|
|