aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/missing_parameter_name.zig
blob: e09aa2b2114a4e3e75fd050b1239da03896416e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
fn f2(u64) u64 {
    return x;
}
fn f3(*x) u64 {
    return x;
}
fn f1(x) u64 {
    return x;
}

// error
//
// :1:7: error: missing parameter name
// :4:7: error: missing parameter name
// :7:7: error: missing parameter name or type
// :7:7: note: if this is a name, annotate its type: 'x: T'
// :7:7: note: if this is a type, give it a name: 'name: x'