Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
local_shadows_global_that_occurs_later.zig
pretty
plain
permalink
blame
history
•
10 lines
•
175 B
1
pub fn main() void {
2
var foo = true;
3
_ = foo;
4
}
5
fn foo() void {}
6
7
// error
8
//
9
// :2:9: error: local variable shadows declaration of 'foo'
10
// :5:1: note: declared here