[fpc-pascal] Constants in generics tests
Sven Barth
pascaldragon at googlemail.com
Sat Feb 16 15:42:27 CET 2019
Am Sa., 16. Feb. 2019, 15:34 hat Ryan Joseph <ryan at thealchemistguild.com>
geschrieben:
>
>
> > On Feb 16, 2019, at 3:33 AM, Sven Barth via fpc-pascal <
> fpc-pascal at lists.freepascal.org> wrote:
> >
> > While you're at it, you should probably also ensure that internal error
> 2014050904 does not trigger ;)
>
> That’s what got my in the first place. I saw the internal error and made
> it not trigger but didn’t bother to check if the rest of the method was
> operational (hint, it’s not!). sym.owner.defowner<>self is not true for
> constants so I need to figure out why.
>
When you create the constant symbols for the specialization you need to
make sure that they belong to the surrounding symtable, not the specialized
generic.
Regards,
Sven
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20190216/4df7fb86/attachment.html>
More information about the fpc-pascal
mailing list