aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/parameter_redeclaration.zig
blob: 1805c9ac756eec669f0c6fb61a8e6a877c09982d (plain)
1
2
3
4
5
6
7
8
9
10
11
fn f(a: i32, a: i32) void {}
export fn entry() void {
    f(1, 2);
}

// error
// backend=stage2
// target=native
//
// :1:14: error: redeclaration of function parameter 'a'
// :1:6: note: previous declaration here