On 05/04/2025 13:27, Sven Barth via fpc-devel wrote:

This is called contra-variance and is in general not something that programming languages support. See for example here: https://stackoverflow.com/questions/2995926/why-is-there-no-parameter-contra-variance-for-overriding

Thanks.

I hadn't planed on using it.

I just run into the return type, wondering why I did not get an error.
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to