November 13, 2022 [Issue 23480] New: non-empty ForStatement Increment clause should require a side effect | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23480 Issue ID: 23480 Summary: non-empty ForStatement Increment clause should require a side effect Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW Severity: enhancement Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: nick@geany.org int j; for({} j; 1*1) {} for({j=2; int d = 3; } j+d<7; {j++; d++; }) {} Each of the above Increment clauses should show 'has no effect' errors. PR incoming. -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply