| ... | ... | @@ -1534,7 +1534,12 @@ fn astGenBuiltinCall(self: *Module, scope: *Scope, call: *ast.Node.BuiltinCall) |
| 1534 | 1534 | const arg_count: ?usize = if (positionals.fields[0].field_type == []*zir.Inst) null else positionals.fields.len; |
| 1535 | 1535 | if (arg_count) |some| { |
| 1536 | 1536 | if (call.params_len != some) { |
| 1537 | | return self.failTok(scope, call.builtin_token, "expected {} parameter, found {}", .{ some, call.params_len }); |
| 1537 | return self.failTok( |
| 1538 | scope, |
| 1539 | call.builtin_token, |
| 1540 | "expected {} parameter{}, found {}", |
| 1541 | .{ some, if (some == 1) "" else "s", call.params_len }, |
| 1542 | ); |
| 1538 | 1543 | } |
| 1539 | 1544 | const params = call.params(); |
| 1540 | 1545 | inline for (positionals.fields) |p, i| { |