[Issue 19877] [dip1000] 'private' makes toHash un- at safe

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 16 00:54:32 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=19877

--- Comment #1 from hsteoh at quickfur.ath.cx ---
Here's a much more reduced case:
------
struct S {
        private int _x;
}
struct RedBlackTree
{
    size_t toHash() nothrow @safe
    {
        return .hashOf(S.init);
    }
}
void main() { }
------

--


More information about the Digitalmars-d-bugs mailing list