mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
29ae6515f3
Closes #8532
15 lines
275 B
Zig
15 lines
275 B
Zig
// dummy comment
|
|
fn entry() void {}
|
|
fn entry() void {}
|
|
|
|
fn foo() void {
|
|
var foo = 1234;
|
|
}
|
|
|
|
// error
|
|
//
|
|
// :3:1: error: redeclaration of 'entry'
|
|
// :2:1: note: other declaration here
|
|
// :6:9: error: local variable shadows declaration of 'foo'
|
|
// :5:1: note: declared here
|