[Issue 21555] New: insertBack is wrong and should be tested for Array!bool
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jan 18 01:29:23 UTC 2021
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 at puremagic.com
Reporter: lsferreira169 at 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[]);
}
--
More information about the Digitalmars-d-bugs
mailing list