This commit is contained in:
Martijn Laan 2024-06-06 08:45:47 +02:00
parent 1cabc1730b
commit 0d585814ef

View File

@ -9589,7 +9589,7 @@ begin
Tmp.ExpectedType := GetTypeNo(BlockInfo, tmp.Val)
else if Tmp.ExpectedType = FAnyString then begin
Tmp.ExpectedType := GetTypeNo(BlockInfo, tmp.Val);
if not IsStringType(Tmp.ExpectedType.BaseType) then
if not IsStringOrCharType(Tmp.ExpectedType.BaseType) then
begin
MakeError('', ecTypeMismatch, '');
Cleanup;