[Issue 20241] New: BitArray.bitsSet ignores length
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Sep 25 07:41:56 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=20241
Issue ID: 20241
Summary: BitArray.bitsSet ignores length
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P4
Component: phobos
Assignee: dlang-bugzilla at thecybershadow.net
Reporter: dlang-bugzilla at thecybershadow.net
//////////// test.d ////////////
import std.algorithm.comparison;
import std.bitmanip;
void main()
{
BitArray ba;
ba.length = 2;
ba[1] = 1;
ba.length = 1;
assert(ba.bitsSet.empty);
}
////////////////////////////////
--
More information about the Digitalmars-d-bugs
mailing list