[fpc-devel] Implicit function specialization precedence
Sven Barth
pascaldragon at googlemail.com
Fri Apr 16 10:44:27 CEST 2021
Ryan Joseph via fpc-devel <fpc-devel at lists.freepascal.org> schrieb am Fr.,
16. Apr. 2021, 00:38:
>
>
> > On Apr 14, 2021, at 3:49 PM, Ryan Joseph <genericptr at gmail.com> wrote:
> >
> > It works but it thinks this array is array of const also so it's too
> strict I believe.
> >
> > ['aaa', 'bbb'];
>
> About this, shouldn't we just be doing this? Any array constructor that
> has elements which are which are incompatible is "array of const"? from
> tarrayconstructornode.pass_typecheck:
>
> if eq=te_incompatible then
> diff:=true;
Yes, do that for now.
Regards,
Sven
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20210416/0e8ae56a/attachment.htm>
More information about the fpc-devel
mailing list