mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
14 lines
275 B
Zig
14 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
|