Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
local_variable_redeclaration.zig
pretty
plain
permalink
blame
history
•
9 lines
•
167 B
1
export fn f() void {
2
const a: i32 = 0;
3
var a = 0;
4
}
5
6
// error
7
//
8
// :3:9: error: redeclaration of local constant 'a'
9
// :2:11: note: previous declaration here