aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/parameter_shadowing_global.zig
blob: 5cc837f05e7f0faaa52359db1c1db1b605712991 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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