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.3.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.3.zig')
| -rw-r--r-- | test/cases/variable_shadowing.3.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cases/variable_shadowing.3.zig b/test/cases/variable_shadowing.3.zig index 89288705e1..1e22ccf123 100644 --- a/test/cases/variable_shadowing.3.zig +++ b/test/cases/variable_shadowing.3.zig @@ -6,5 +6,5 @@ pub fn main() void { // error // -// :3:19: error: redeclaration of local variable 'i' +// :3:19: error: loop index capture 'i' shadows local variable from outer scope // :2:9: note: previous declaration here |
