mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-15 14:19:28 +02:00
fcl-passrc: pastree: Don't create TPasUnresolvedTypeRef for empty AUnresolvedTypeName in TPasProcedureType.CreateArgument (parameter can be declared without type with additional modifiers)
git-svn-id: trunk@36624 -
This commit is contained in:
parent
c5941e109f
commit
f475ba39ba
@ -2742,7 +2742,8 @@ function TPasProcedureType.CreateArgument(const AName,
|
||||
begin
|
||||
Result := TPasArgument.Create(AName, Self);
|
||||
Args.Add(Result);
|
||||
Result.ArgType := TPasUnresolvedTypeRef.Create(AUnresolvedTypeName, Result);
|
||||
if AUnresolvedTypeName<>'' then
|
||||
Result.ArgType := TPasUnresolvedTypeRef.Create(AUnresolvedTypeName, Result);
|
||||
end;
|
||||
|
||||
procedure TPasProcedureType.ForEachCall(const aMethodCall: TOnForEachPasElement;
|
||||
|
Loading…
Reference in New Issue
Block a user