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

// error
// backend=stage2
// target=native
//
// :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'