Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
local_variable_redeclares_parameter.zig
pretty
plain
permalink
blame
history
•
11 lines
•
210 B
1
fn f(a: i32) void {
2
const a = 0;
3
}
4
export fn entry() void {
5
f(1);
6
}
7
8
// error
9
//
10
// :2:11: error: local constant 'a' shadows function parameter from outer scope
11
// :1:6: note: previous declaration here