AstGen: use 'shadows' instead of 'redeclaration' when names are in different scopes

Closes #8532
29ae6515f3Veikka Tuominen committed on 10/7/2022, 8:04:02 AMparent11dce78
16 files changedLine totals unavailable