mirror of
https://github.com/ziglang/zig.git
synced 2024-12-01 01:22:50 +00:00
29ae6515f3
Closes #8532
10 lines
179 B
Zig
10 lines
179 B
Zig
var testing: i64 = 10;
|
|
pub fn main() void {
|
|
var testing: i64 = 20;
|
|
}
|
|
|
|
// error
|
|
//
|
|
// :3:9: error: local variable shadows declaration of 'testing'
|
|
// :1:1: note: declared here
|