mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-03 05:58:14 +02:00
codetools: fixed find base type of constructor
git-svn-id: trunk@18616 -
This commit is contained in:
parent
b5e43b5d77
commit
90f305ab51
@ -5381,7 +5381,8 @@ var
|
||||
ProcNode:=ProcNode.Parent;
|
||||
ExprType.Context.Tool.BuildSubTreeForProcHead(ProcNode.FirstChild,
|
||||
FuncResultNode);
|
||||
if (FuncResultNode<>nil) or NodeIsConstructor(ProcNode) then begin
|
||||
if (FuncResultNode<>nil) or ExprType.Context.Tool.NodeIsConstructor(ProcNode)
|
||||
then begin
|
||||
// it is function or a constructor
|
||||
// -> use the result type instead of the function
|
||||
if IsIdentifierEndOfVariable then begin
|
||||
|
Loading…
Reference in New Issue
Block a user