aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/parameter_shadowing_global.zig
blob: 47d112807bbff9bf3049185f3dd0df0b6c1d24c9 (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: local shadows declaration of 'Foo'
// :1:1: note: declared here