zig/test/cases/compile_errors/missing_parameter_name.zig
wooster0 56fad6a195 make error messages prettier
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.
2025-05-15 16:39:15 +01:00

19 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'