October 06, 2014 [Issue 13578] New: std.algorithm.sort fails in debug mode if member "init" is present | ||||
---|---|---|---|---|
| ||||
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); } -- |
Copyright © 1999-2021 by the D Language Foundation