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) { } }
Commit pushed to https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/5aa2b7af90b9625f4ed8c8bde8d43ff6c44760d1 fix Issue 6704 - CommaExpression as an IfCondition