mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-27 19:09:47 +03:00
56fad6a195
Error messages never contain periods or grave accents. Get rid of the periods and use apostrophes instead in probably the only two error messages that had them.
20 lines
389 B
Zig
20 lines
389 B
Zig
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'
|