git-svn-id: trunk@7811 -
@@ -275,6 +275,20 @@ implementation
eq:=te_convert_l2;
end;
+ objectdef:
+ begin
+ if is_class_or_interface_or_dispinterface(def_from) and (cdo_explicit in cdoptions) then
+ eq:=te_convert_l1;
+ if (fromtreetype=niln) then
+ { will be handled by the constant folding }
+ doconv:=tc_equal;
+ end
+ else
+ doconv:=tc_int_2_int;
+ end;
classrefdef,
procvardef,
pointerdef :