The following code is valid according to the spec but rejected by dmd with the error:
test.d(3): if (v; e) is deprecated, use if (auto v = e)
Tested with DMD v2.055
----
void main() {
int a;
if(a, true) { }
}
Comment #1 by github-bugzilla — 2012-01-21T00:17:09Z