Fixes Issue 8892 - Better diagnostic for static array assignment.
Merge pull request #1558 from AndrejMitrovic/Fix8892

Issue 8892 - Better diagnostic for static array assignment