aboutsummaryrefslogtreecommitdiff
path: root/test/cases/function_redeclaration.zig
blob: b6cbf664a9fdc37a1a86caf6e1b3e4f5e10e33cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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