mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 22:09:33 +02:00
* pass classes and interfaces by value if const is used, resolves #9674
git-svn-id: trunk@8484 -
This commit is contained in:
parent
f5ac7ca9be
commit
039b513d93
@ -160,7 +160,8 @@ unit cpupara;
|
||||
exit;
|
||||
end;
|
||||
case def.typ of
|
||||
objectdef,
|
||||
objectdef:
|
||||
result:=is_object(def) and ((varspez=vs_const) or (def.size=0));
|
||||
recorddef:
|
||||
result:=(varspez=vs_const) or (def.size=0);
|
||||
variantdef,
|
||||
|
Loading…
Reference in New Issue
Block a user