mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-17 12:59: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
|
||||
target_def:=tarraydef(target_def).elementdef;
|
||||
target_key:=generic_param_hash(target_def);
|
||||
caller_def:=tstringdef(caller_def).get_default_char_type;
|
||||
caller_def:=chartype_for_stringlike(caller_def);
|
||||
end
|
||||
{ non-uniform array constructors (i.e. array of const) are not compatible
|
||||
with normal arrays like "array of T" so we reject them }
|
||||
|
Loading…
Reference in New Issue
Block a user