https://issues.dlang.org/show_bug.cgi?id=15384
--- Comment #3 from [email protected] --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/95453495fdb38b9c596a977595ce23966fa55be7 fix Issue 15384 - assignment is sometimes still accepted as a condition 1. Add CommaExp.toBoolean to show error message. 2. Add checkAssignmentAsCondition and call it before semantic analysis to provide informative diagnostic. https://github.com/D-Programming-Language/dmd/commit/66ca6fe6cfe45f251664abed7304814c4e07af68 Merge pull request #5293 from 9rnsr/fix15384 Issue 15384 - assignment is sometimes still accepted as a condition --
