diff options
| author | Veikka Tuominen <git@vexu.eu> | 2022-10-06 17:05:34 +0300 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2022-10-07 11:04:02 +0300 |
| commit | 29ae6515f3adc23df3d889acaf7ec62a2d01b707 (patch) | |
| tree | f774b68521f6aca221628201408e47b2b24f481a /test/cases/variable_shadowing.1.zig | |
| parent | 11dce78944ecfab1838cd678f75c354aa376a8bf (diff) | |
| download | zig-29ae6515f3adc23df3d889acaf7ec62a2d01b707.tar.gz zig-29ae6515f3adc23df3d889acaf7ec62a2d01b707.zip | |
AstGen: use 'shadows' instead of 'redeclaration' when names are in different scopes
Closes #8532
Diffstat (limited to 'test/cases/variable_shadowing.1.zig')
| -rw-r--r-- | test/cases/variable_shadowing.1.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cases/variable_shadowing.1.zig b/test/cases/variable_shadowing.1.zig index af24af038d..2a2945a65f 100644 --- a/test/cases/variable_shadowing.1.zig +++ b/test/cases/variable_shadowing.1.zig @@ -5,5 +5,5 @@ pub fn main() void { // error // -// :3:9: error: local shadows declaration of 'testing' +// :3:9: error: local variable shadows declaration of 'testing' // :1:1: note: declared here |
