digitalmars.D.bugs - [Issue 13578] New: std.algorithm.sort fails in debug mode if member
- via Digitalmars-d-bugs (27/27) Oct 06 2014 https://issues.dlang.org/show_bug.cgi?id=13578
https://issues.dlang.org/show_bug.cgi?id=13578 Issue ID: 13578 Summary: std.algorithm.sort fails in debug mode if member "init" is present Product: D Version: D2 Hardware: x86 OS: All Status: NEW Severity: normal Priority: P1 Component: DMD Assignee: nobody puremagic.com Reporter: luis luismarques.eu This fails to compile, unless we rename the member "init": unittest { import std.algorithm; class C { int x; bool init; } C[] c; c.sort!((a,b) => a.x < b.x); } --
Oct 06 2014