aboutsummaryrefslogtreecommitdiff
path: root/test/cases/variable_shadowing.7.zig
diff options
context:
space:
mode:
authorVeikka Tuominen <git@vexu.eu>2022-10-06 17:05:34 +0300
committerVeikka Tuominen <git@vexu.eu>2022-10-07 11:04:02 +0300
commit29ae6515f3adc23df3d889acaf7ec62a2d01b707 (patch)
treef774b68521f6aca221628201408e47b2b24f481a /test/cases/variable_shadowing.7.zig
parent11dce78944ecfab1838cd678f75c354aa376a8bf (diff)
downloadzig-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.7.zig')
-rw-r--r--test/cases/variable_shadowing.7.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cases/variable_shadowing.7.zig b/test/cases/variable_shadowing.7.zig
index 95888839a7..e8368699b4 100644
--- a/test/cases/variable_shadowing.7.zig
+++ b/test/cases/variable_shadowing.7.zig
@@ -5,5 +5,5 @@ pub fn main() void {
// error
//
-// :3:16: error: redeclaration of local variable 'i'
+// :3:16: error: capture 'i' shadows local variable from outer scope
// :2:9: note: previous declaration here