mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
astgen.zig: don't add scopes for extern functions params as they may shadow other names
This commit is contained in:
parent
c6b3d06535
commit
8081e3cbc7
@ -3147,7 +3147,7 @@ fn fnDecl(
|
||||
break :param indexToRef(param_inst);
|
||||
};
|
||||
|
||||
if (param_name == 0) continue;
|
||||
if (param_name == 0 or is_extern) continue;
|
||||
|
||||
const sub_scope = try astgen.arena.create(Scope.LocalVal);
|
||||
sub_scope.* = .{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user