zig/test/cases/compile_errors/parameter_redeclaration.zig
Eric Joldasov 50339f595a all: zig fmt and rename "@XToY" to "@YFromX"
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
2023-06-19 12:34:42 -07:00

11 lines
215 B
Zig

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