https://issues.dlang.org/show_bug.cgi?id=22384
Dlang Bot <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull --- Comment #1 from Dlang Bot <[email protected]> --- @MoonlightSentinel created dlang/phobos pull request #8270 "Fix 22384 - Treat noreturn handlers like void in castSwitch" fixing this issue: - Fix 22384 - Treat noreturn handlers like void in castSwitch The previous check assumed that non-`void` return implies a returned value - which obviously does not apply for `noreturn`. Further code then assumed that `void` handlers should throw an exception and hence threw an error when it didn't throw. https://github.com/dlang/phobos/pull/8270 --
