mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-02 09:09:47 +01:00
+ classrefdef is assignment compatible to pointers in delphi mode
git-svn-id: trunk@7648 -
This commit is contained in:
parent
563b325382
commit
c7037df254
@ -1252,6 +1252,14 @@ implementation
|
||||
end;
|
||||
end
|
||||
else
|
||||
if (m_delphi in current_settings.modeswitches) and
|
||||
is_voidpointer(def_from) then
|
||||
begin
|
||||
doconv:=tc_equal;
|
||||
{ prefer pointer-pointer assignments }
|
||||
eq:=te_convert_l2;
|
||||
end
|
||||
else
|
||||
{ nil is compatible with class references }
|
||||
if (fromtreetype=niln) then
|
||||
begin
|
||||
|
||||
Loading…
Reference in New Issue
Block a user