Thread overview
[Issue 14457] Algebraic does not allow assignment from subset type
Apr 20, 2015
Justin Whear
April 20, 2015
https://issues.dlang.org/show_bug.cgi?id=14457

Justin Whear <justin@economicmodeling.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
             Status|NEW                         |ASSIGNED
                URL|                            |https://github.com/D-Progra
                   |                            |mming-Language/phobos/pull/
                   |                            |3209

--
April 26, 2015
https://issues.dlang.org/show_bug.cgi?id=14457

github-bugzilla@puremagic.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--
April 26, 2015
https://issues.dlang.org/show_bug.cgi?id=14457

--- Comment #1 from github-bugzilla@puremagic.com ---
Commit pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/5a9c0bcd6bb60b32eca098fbbaf46746a0cbcfb4 Fixes 14457 (VariantN opAssign subset variant)

Allows a VariantN to be assigned from another VariantN that is a strict subset.  Implements an opAssign overload that specializes on VariantN instantations that are not the current VariantN but whose AllowedTypes are a subset of the current variant's.

Added accompanying unittest.

Fix Issue 14457

--
July 19, 2017
https://issues.dlang.org/show_bug.cgi?id=14457

--- Comment #2 from github-bugzilla@puremagic.com ---
Commit pushed to dmd-cxx at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/5a9c0bcd6bb60b32eca098fbbaf46746a0cbcfb4 Fixes 14457 (VariantN opAssign subset variant)

--