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

João Lourenço <[email protected]> changed:

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

--- Comment #1 from João Lourenço <[email protected]> ---
A better workaround is:

```d
string unwrap(Result r) {
    return r.match!(
        (string s) => s,
        function string (int) { assert(0); },
    );
}
```

--

Reply via email to