mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-05-07 17:11:19 -04:00
50339f595a
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
14 lines
245 B
Zig
14 lines
245 B
Zig
fn f(a: i32) void {
|
|
const a = 0;
|
|
}
|
|
export fn entry() void {
|
|
f(1);
|
|
}
|
|
|
|
// error
|
|
// backend=stage2
|
|
// target=native
|
|
//
|
|
// :2:11: error: local constant 'a' shadows function parameter from outer scope
|
|
// :1:6: note: previous declaration here
|