pastojs: fixed check alias proc type

git-svn-id: trunk@37722 -
This commit is contained in:
Mattias Gaertner 2017-12-12 19:05:41 +00:00
parent a423d6be91
commit 24c634d38d

View File

@ -5899,9 +5899,10 @@ begin
or (C=TPasFunctionType) then
begin
AContext.Resolver.ComputeElement(El.Value,ValueResolved,[rcNoImplicitProc]);
if ValueResolved.IdentEl is TPasProcedureType then
if (ValueResolved.IdentEl is TPasType)
and (AContext.Resolver.ResolveAliasType(TPasType(ValueResolved.IdentEl)) is TPasProcedureType) then
begin
// type cast to proc type
// type cast to proc type
Param:=El.Params[0];
Result:=ConvertElement(Param,AContext);
exit;