[Issue 24117] noreturn can be used as expression

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Aug 30 11:38:18 UTC 2023


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

--- Comment #5 from Nick Treleaven <nick at geany.org> ---
> enum E {e0 = 0, e1 = 1, illegal = noreturn} 

>     foreach (const i; 0 .. noreturn){}

I made a new fix that is more precise which does reject the 2 above and should
cover all cases.

--


More information about the Digitalmars-d-bugs mailing list