https://issues.dlang.org/show_bug.cgi?id=23266
FeepingCreature changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
https://issues.dlang.org/show_bug.cgi?id=23266
Steven Schveighoffer changed:
What|Removed |Added
CC||schvei...@gmail.com
--- Comment #3
https://issues.dlang.org/show_bug.cgi?id=23266
Iain Buclaw changed:
What|Removed |Added
Priority|P1 |P4
--
https://issues.dlang.org/show_bug.cgi?id=23266
--- Comment #2 from FeepingCreature ---
I've tried a DMD branch that errors with -w if `if()` has a statically known
true condition and an else block. The two main things I ran into in Phobos are:
1.
if (false) {
some code that should affect
https://issues.dlang.org/show_bug.cgi?id=23266
--- Comment #1 from FeepingCreature ---
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