mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 10:16:04 +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;
|
ProcNode:=ProcNode.Parent;
|
||||||
ExprType.Context.Tool.BuildSubTreeForProcHead(ProcNode.FirstChild,
|
ExprType.Context.Tool.BuildSubTreeForProcHead(ProcNode.FirstChild,
|
||||||
FuncResultNode);
|
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
|
// it is function or a constructor
|
||||||
// -> use the result type instead of the function
|
// -> use the result type instead of the function
|
||||||
if IsIdentifierEndOfVariable then begin
|
if IsIdentifierEndOfVariable then begin
|
||||||
|
Loading…
Reference in New Issue
Block a user