[Issue 17482] [REG 2.074] comile error: Comparing Nullable!Variant with basic type

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Jul 3 19:24:39 PDT 2017


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

Jonathan M Davis <issues.dlang at jmdavisProg.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |issues.dlang at jmdavisProg.co
                   |                            |m

--- Comment #3 from Jonathan M Davis <issues.dlang at jmdavisProg.com> ---
(In reply to David Marquant from comment #2)
> Should it also be possible to assign values?
> 
> a = 11; // Isn't compiling as well

That did not compile with 2.073.2. So, regardless of what the desired behavior
would be, the fact that that does not currently compile is not a regression.

Also, a better example of the regression would probably be something like

    Nullable!Variant a = Variant(12);
    assert(a != 11);

since the original example would actually fail an assertion otherwise - though
the compilation error is the same.

--


More information about the Digitalmars-d-bugs mailing list