codetools: find declaration: default property for interface, bug #14151

git-svn-id: trunk@20871 -
This commit is contained in:
mattias 2009-07-16 14:36:38 +00:00
parent 69d68a7b86
commit 11ffbb8264

View File

@ -6399,10 +6399,10 @@ var
ExprType.Context:=ExprType.Context.Tool.FindBaseTypeOfNode(Params,
ExprType.Context.Node.FirstChild);
ctnClass, ctnProperty, ctnGlobalProperty:
ctnClass, ctnClassInterface, ctnProperty, ctnGlobalProperty:
begin
if ExprType.Context.Node.Desc=ctnClass then begin
// search default property of the class
if ExprType.Context.Node.Desc in [ctnClass,ctnClassInterface] then begin
// search default property of the class / interface
Params.Save(OldInput);
Params.Flags:=[fdfSearchInAncestors,fdfExceptionOnNotFound]
+fdfGlobals*Params.Flags;