Fixes Issue 10415 - Bad diagnostic on writing to an r-value property return.
Merge pull request #2227 from AndrejMitrovic/Fix10415

Issue 10415 - Bad diagnostic on writing to an r-value property return