mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-06 11:28:06 +02:00
Fix for default value of a class of type.
This commit is contained in:
parent
b32573d1eb
commit
664f8fc2ba
@ -15131,7 +15131,7 @@ begin
|
||||
ReleaseEvalValue(Value);
|
||||
end;
|
||||
end
|
||||
else if (C=TPasClassType) or (C=TPasPointerType) then
|
||||
else if (C=TPasClassType) or (C=TPasPointerType) or (C=TPasClassOfType) then
|
||||
begin
|
||||
Result:=CreateLiteralNull(El);
|
||||
exit;
|
||||
|
Loading…
Reference in New Issue
Block a user