[Issue 13017] opEquals for null std.typecons.Nullable

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Sep 4 01:35:40 PDT 2015


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

Tomáš Chaloupka <chalucha at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |chalucha at gmail.com

--- Comment #1 from Tomáš Chaloupka <chalucha at gmail.com> ---
Similar problem, same exception:

import std.typecons;

struct Foo
{
    Nullable!int field;
}

void main()
{
    Foo a;
    assert (a == Foo.init);
}

--


More information about the Digitalmars-d-bugs mailing list