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

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