mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
13 lines
227 B
Zig
13 lines
227 B
Zig
const Foo = struct {};
|
|
fn f(Foo: i32) void {}
|
|
export fn entry() void {
|
|
f(1234);
|
|
}
|
|
|
|
// error
|
|
// backend=stage2
|
|
// target=native
|
|
//
|
|
// :2:6: error: function parameter shadows declaration of 'Foo'
|
|
// :1:1: note: declared here
|