[Issue 23587] cast(void) doesn't work for noreturn

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Dec 30 13:05:06 UTC 2022


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

--- Comment #4 from Iain Buclaw <ibuclaw at gdcproject.org> ---
(In reply to RazvanN from comment #3)
> Why does it matter? The call to fun will never return so casting to void (or
> any other value) it actually a no-op.
The devils in the detail of the change, not the example code in this bug
report.  By blowing a hole in the type system has opened up the flood gates to
even worse abominations being accepted.

--


More information about the Digitalmars-d-bugs mailing list