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 <generic...@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; > > Regards, > Ryan Joseph >
Regards, Ryan Joseph _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal