fix issue 10862 - Assignment inside if condition still sometimes accepted