codetools: fixed find base type of constructor

git-svn-id: trunk@18616 -
This commit is contained in:
mattias 2009-02-09 14:02:11 +00:00
parent b5e43b5d77
commit 90f305ab51

View File

@ -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