fix issue 10862 - Assignment inside if condition still sometimes
accepted
Merge pull request #2491 from hpohl/10862

fix issue 10862 - Assignment inside if condition still sometimes accepted