fix Issue 11181 - Missing compile-time error for wrong array literal
Merge pull request #3583 from 9rnsr/fix11181

Issue 11181 - Missing compile-time error for wrong array literal