I'm not objecting but... this compiles (1.026): import std.stdio; void main() { int j = 3; for({ int i; if(j>2) i = 3; else i = 4; } i; i--) { writef("%d\n", i); } }