override requires no return inference

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Thu Apr 14 14:31:30 PDT 2016


On 14.04.2016 23:24, Steven Schveighoffer wrote:
>
>
> But the first error seems tailored to apply to this situation. My
> question is, why? What harm are we fixing by preventing return type
> inference in overriding functions?


AFAIK it's supposed to work, but it is currently not supported by DMD: 
https://issues.dlang.org/show_bug.cgi?id=8318



More information about the Digitalmars-d mailing list