digitalmars.D.bugs - [Issue 15561] New: std.typecons.Proxy gets NaN comparisons wrong
- via Digitalmars-d-bugs (25/25) Jan 12 2016 https://issues.dlang.org/show_bug.cgi?id=15561
https://issues.dlang.org/show_bug.cgi?id=15561 Issue ID: 15561 Summary: std.typecons.Proxy gets NaN comparisons wrong Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: major Priority: P1 Component: phobos Assignee: nobody puremagic.com Reporter: john.loughran.colvin gmail.com Let's see it in action in std.typecons.Typedef: alias MyFloat = Typedef!float; unittest { MyFloat a,b; assert(a!=b); assert(!(a<b)); assert(!(a>b)); assert(!(a>=b)); //fails assert(!(a<=a)); //fails } --
Jan 12 2016