mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
11 lines
202 B
Zig
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
|