authorgravatar for matthew.h.borkowski@gmail.comMatthew Borkowski <matthew.h.borkowski@gmail.com> 2021-10-26 18:21:29-04:00
committergravatar for matthew.h.borkowski@gmail.comMatthew Borkowski <matthew.h.borkowski@gmail.com> 2021-10-26 18:21:29-04:00
log8081e3cbc7f8b6af71dcbb88a12f6431b8be67be
treeff6e790a4286100fc3939cd474db7c70acd4128d
parentc6b3d06535f4227541c13fe75da347a485abdb4f

astgen.zig: don't add scopes for extern functions params as they may shadow other names


1 files changed, 1 insertions(+), 1 deletions(-)

src/AstGen.zig+1-1
......@@ -3147,7 +3147,7 @@ fn fnDecl(
31473147 break :param indexToRef(param_inst);
31483148 };
31493149
3150 if (param_name == 0) continue;
3150 if (param_name == 0 or is_extern) continue;
31513151
31523152 const sub_scope = try astgen.arena.create(Scope.LocalVal);
31533153 sub_scope.* = .{