Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
parameter_shadowing_global.zig
pretty
plain
permalink
blame
history
•
10 lines
•
192 B
1
const Foo = struct {};
2
fn f(Foo: i32) void {}
3
export fn entry() void {
4
f(1234);
5
}
6
7
// error
8
//
9
// :2:6: error: function parameter shadows declaration of 'Foo'
10
// :1:1: note: declared here