[fpc-devel] Overridden method with different signature - compiles - should it?
    Martin Frb 
    lazarus at mfriebe.de
       
    Sat Apr  5 13:33:23 CEST 2025
    
    
  
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.
    
    
More information about the fpc-devel
mailing list