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

Paul Backus <[email protected]> changed:

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

--- Comment #1 from Paul Backus <[email protected]> ---
The first example looks like a bad error message. The actual problem is that
you cannot call a @system copy constructor from @safe code--and indeed,
changing main to @system allows the example to compile successfully.

The second example is a mistake in SumType, and should not be difficult to fix.

--

Reply via email to