January 18, 2021 [Issue 21555] New: insertBack is wrong and should be tested for Array!bool | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=21555 Issue ID: 21555 Summary: insertBack is wrong and should be tested for Array!bool Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: phobos Assignee: nobody@puremagic.com Reporter: lsferreira169@gmail.com The given code reports 0 inserted elements and the final array is [false], so this is clearly wrong and should be covered. --- import std; void main() { Array!bool atum; writeln(atum.insertBack([false])); writeln(atum[]); } -- |
Copyright © 1999-2021 by the D Language Foundation