We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec8c015 commit ced47f1Copy full SHA for ced47f1
1 file changed
compiler/pstatmnt.pas
@@ -71,8 +71,11 @@ implementation
71
String constants are typed as chararray (array of char with
72
ado_IsConstString), so chararray must be promoted like strings. }
73
if not assigned(olddef) or
74
- (is_anychar(olddef) and (is_string(branchdef) or is_chararray(branchdef))) then
+ (is_anychar(olddef) and is_string(branchdef)) then
75
result:=branchdef
76
+ else if (is_anychar(olddef) and is_chararray(branchdef)) or
77
+ (is_chararray(olddef) and is_anychar(branchdef)) then
78
+ result:=cansistringtype
79
else if is_widestring(branchdef) or
80
((is_ansistring(olddef) or is_shortstring(olddef) or is_chararray(olddef)) and is_widechar(branchdef)) then
81
result:=cwidestringtype
0 commit comments