[Issue 8962] std.variant.Algebraic should support duplicate types
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Apr 9 00:41:35 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=8962
tetyys at tetyys.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tetyys at tetyys.com
--- Comment #1 from tetyys at tetyys.com ---
> As std.variant.Algebraic implements a bounded discriminated union, it should allow for duplicate types
Algebraic data type restricts to a closed set of possible types, how is it
gonna restrict it to same type twice? I think the actual bug here is that
Algebraic doesn't say anything when you pass two same types into it. But it
still restricts storage to that one type normally.
--
More information about the Digitalmars-d-bugs
mailing list