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

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from [email protected] ---
assert(a + b == 3L); // error
assert(a + 2 == 3L); // error
assert(1 + b == 3L); // error

I think giving an error is correct. An algebraic data type is not meant to be
transparent to arithmetic operations, it's a way to bundle alternative types.

--

Reply via email to