mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 16:09:23 +02:00
* fixed a bug in resolving external references for classtree and whatever else
uses findelement. A reference was checked against TPasModule with "=", ruling out descendants like TPasExternalModule. All "content" (.xct) symbols are in externalmodules git-svn-id: trunk@24277 -
This commit is contained in:
parent
b2f861420c
commit
3acd49ddbc
@ -1177,7 +1177,7 @@ begin
|
|||||||
for i := CurModule.InterfaceSection.UsesList.Count - 1 downto 0 do
|
for i := CurModule.InterfaceSection.UsesList.Count - 1 downto 0 do
|
||||||
begin
|
begin
|
||||||
Module := TPasElement(CurModule.InterfaceSection.UsesList[i]);
|
Module := TPasElement(CurModule.InterfaceSection.UsesList[i]);
|
||||||
if Module.ClassType = TPasModule then
|
if Module.ClassType.InheritsFrom(TPasModule) then
|
||||||
begin
|
begin
|
||||||
Result := FindInModule(TPasModule(Module), AName);
|
Result := FindInModule(TPasModule(Module), AName);
|
||||||
if Assigned(Result) then
|
if Assigned(Result) then
|
||||||
|
Loading…
Reference in New Issue
Block a user