[Issue 23266] Dead else blocks are not considered unreachable

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jul 22 07:47:54 UTC 2022


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

--- Comment #1 from FeepingCreature <default_357-line at yahoo.de> ---
One could argue that this is correct because otherwise the common technique of
stubbing out an if statement by adding `if (false &&` stops working. For the
CompoundStatement error to trigger with that, you'd need to do `if (true &&`,
which is much more rare.

--


More information about the Digitalmars-d-bugs mailing list