Thread overview
[Issue 22015] sumtype Error: e2ir: cannot cast `...` of type `noreturn` to type `string`
June 11
https://issues.dlang.org/show_bug.cgi?id=22015

João Lourenço <jlourenco5691@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jlourenco5691@gmail.com

--- Comment #1 from João Lourenço <jlourenco5691@gmail.com> ---
A better workaround is:

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

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

moonlightsentinel@disroot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |backend
                 CC|                            |moonlightsentinel@disroot.o
                   |                            |rg

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

--- Comment #2 from moonlightsentinel@disroot.org ---
Probably fixed in stable by https://github.com/dlang/dmd/pull/12633

--