lazarus/components/codetools/tests/laztests/bug39897.pas
Martin e1dc8a96d9 Codetool: prevent recursion in ResolveBaseTypeOfIdentifier. Issue 39897
`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.
2022-10-26 14:58:42 +02:00

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.