| ... | ... | @@ -1470,6 +1470,17 @@ static TypeTableEntry *analyze_fn_type(CodeGen *g, AstNode *proto_node, Scope *c |
| 1470 | 1470 | calling_convention_name(fn_type_id.cc))); |
| 1471 | 1471 | return g->builtin_types.entry_invalid; |
| 1472 | 1472 | } |
| 1473 | if (param_node->data.param_decl.type != nullptr) { |
| 1474 | TypeTableEntry *type_entry = analyze_type_expr(g, child_scope, param_node->data.param_decl.type); |
| 1475 | if (type_is_invalid(type_entry)) { |
| 1476 | return g->builtin_types.entry_invalid; |
| 1477 | } |
| 1478 | FnTypeParamInfo *param_info = &fn_type_id.param_info[fn_type_id.next_param_index]; |
| 1479 | param_info->type = type_entry; |
| 1480 | param_info->is_noalias = param_node->data.param_decl.is_noalias; |
| 1481 | fn_type_id.next_param_index += 1; |
| 1482 | } |
| 1483 | |
| 1473 | 1484 | return get_generic_fn_type(g, &fn_type_id); |
| 1474 | 1485 | } else if (param_is_var_args) { |
| 1475 | 1486 | if (fn_type_id.cc == CallingConventionC) { |