mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 15:49:27 +02:00
pastojs: fixed check alias proc type
git-svn-id: trunk@37722 -
This commit is contained in:
parent
a423d6be91
commit
24c634d38d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user