Deduction regression or improvement?

Johan Engelen via Digitalmars-d digitalmars-d at puremagic.com
Fri Mar 11 07:26:05 PST 2016


On Friday, 11 March 2016 at 13:28:22 UTC, Hara Kenji wrote:
> I think that T should be deduced to the typeof(true ? cs : ms) 
> at line [a] and typeof(true ? ms : cs) at line [b], then the 
> two lines will get consistent deduction result T == const(S).

I also thought it should deduce T == const(S), and was surprised 
2.068.2 deduced it without const.


More information about the Digitalmars-d mailing list