[fpc-pascal] Calling undefined function pointers in generics
Sven Barth
pascaldragon at googlemail.com
Mon Jun 20 14:12:06 CEST 2022
Hairy Pixels <genericptr at gmail.com> schrieb am Mo., 20. Juni 2022, 03:38:
> NOTE: I’m replying to this and CC’ing Sven so hopefully he can see it.
>
> > On Jun 19, 2022, at 10:05 AM, Hairy Pixels <genericptr at gmail.com> wrote:
> >
> > This code snippet will give a compiler error "Syntax error, ";" expected
> but "(“ found”. It’s an unspecialized generic type so I would think it
> should compile and only attempt to validate the parameters when the
> function is specialized.
> >
> > generic procedure Perform<T>(func: T);
> > begin
> > func(1);
> > end;
>
Please report a bug.
Regards,
Sven
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20220620/38f78c64/attachment.htm>
More information about the fpc-pascal
mailing list