Issue 9250 - Wrong line number in assignment diagnostic

Replaces https://github.com/D-Programming-Language/dmd/pull/1427