mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 21:29:26 +02:00
fcl-passrc: resolver: check class-is-class for specialization params forward class
git-svn-id: trunk@47051 -
(cherry picked from commit c4ab6b08cd
)
This commit is contained in:
parent
59a5bed833
commit
16886b5946
@ -29729,8 +29729,8 @@ function TPasResolver.CheckClassIsClass(SrcType, DestType: TPasType): integer;
|
||||
DestParams:=DestSpecializedFromItem.Params;
|
||||
for i:=0 to length(SrcParams)-1 do
|
||||
begin
|
||||
SrcParam:=SrcParams[i];
|
||||
DestParam:=DestParams[i];
|
||||
SrcParam:=ResolveAliasType(SrcParams[i]);
|
||||
DestParam:=ResolveAliasType(DestParams[i]);
|
||||
if (SrcParam is TPasGenericTemplateType)
|
||||
or (DestParam is TPasGenericTemplateType)
|
||||
or (SrcParam=DestParam)
|
||||
|
Loading…
Reference in New Issue
Block a user