[Issue 20639] New: Some BitArray methods should be const/pure/nothrow/...
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Mar 5 16:13:18 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=20639
Issue ID: 20639
Summary: Some BitArray methods should be const/pure/nothrow/...
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: moonlightsentinel at disroot.org
The following code gives various errors regarding pure/nothrow/... because
these methods are missing appropriate annotations:
-----------------
import std.bitmanip : BitArray;
void main() @nogc pure nothrow
{
BitArray b;
b[] = true;
b[0..1] = true;
b.flip();
b.count();
}
------------------
--
More information about the Digitalmars-d-bugs
mailing list