| ... | ... | @@ -1634,7 +1634,7 @@ static ZigType *analyze_fn_type(CodeGen *g, AstNode *proto_node, Scope *child_sc |
| 1634 | 1634 | } |
| 1635 | 1635 | } else if (param_node->data.param_decl.var_token != nullptr) { |
| 1636 | 1636 | if (!calling_convention_allows_zig_types(fn_type_id.cc)) { |
| 1637 | | add_node_error(g, param_node->data.param_decl.type, |
| 1637 | add_node_error(g, param_node, |
| 1638 | 1638 | buf_sprintf("parameter of type 'var' not allowed in function with calling convention '%s'", |
| 1639 | 1639 | calling_convention_name(fn_type_id.cc))); |
| 1640 | 1640 | return g->builtin_types.entry_invalid; |