mirror of
https://github.com/ziglang/zig.git
synced 2024-12-01 01:22:50 +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
|