zig/test/cases/compile_errors/local_variable_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
202 B
Zig

export fn f() void {
const a: i32 = 0;
var a = 0;
}
// error
// backend=stage2
// target=native
//
// :3:9: error: redeclaration of local constant 'a'
// :2:11: note: previous declaration here