function overrides but is not covariant

John Colvin john.loughran.colvin at gmail.com
Mon Apr 29 07:02:38 PDT 2013


On Monday, 29 April 2013 at 09:23:01 UTC, Namespace wrote:
>> Not surprising to me at all. Why would ref be covariant with 
>> non-ref?
>
> I do not understand the error fully. Why I cannot overload the 
> method in the class with non-ref?

Sorry, my mistake, it looks like a bug. Dmd thinks that you're 
trying to override, not overload.


More information about the Digitalmars-d-learn mailing list