Fixes Issue 9250 - Wrong line number in assignment diagnostic