mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 16:29:24 +02:00
* use new chartype_for_stringlike function to retrieve the char type for a stringlike def instead of casting to a stringdef
This commit is contained in:
parent
ea417fbaaf
commit
e8fcc5343b
@ -1158,7 +1158,7 @@ uses
|
|||||||
begin
|
begin
|
||||||
target_def:=tarraydef(target_def).elementdef;
|
target_def:=tarraydef(target_def).elementdef;
|
||||||
target_key:=generic_param_hash(target_def);
|
target_key:=generic_param_hash(target_def);
|
||||||
caller_def:=tstringdef(caller_def).get_default_char_type;
|
caller_def:=chartype_for_stringlike(caller_def);
|
||||||
end
|
end
|
||||||
{ non-uniform array constructors (i.e. array of const) are not compatible
|
{ non-uniform array constructors (i.e. array of const) are not compatible
|
||||||
with normal arrays like "array of T" so we reject them }
|
with normal arrays like "array of T" so we reject them }
|
||||||
|
Loading…
Reference in New Issue
Block a user