| ... | ... | @@ -1680,14 +1680,6 @@ static TypeTableEntry *analyze_fn_type(CodeGen *g, AstNode *proto_node, Scope *c |
| 1680 | 1680 | case TypeTableEntryIdBlock: |
| 1681 | 1681 | case TypeTableEntryIdBoundFn: |
| 1682 | 1682 | case TypeTableEntryIdMetaType: |
| 1683 | | if (!calling_convention_allows_zig_types(fn_type_id.cc)) { |
| 1684 | | add_node_error(g, fn_proto->return_type, |
| 1685 | | buf_sprintf("return type '%s' not allowed in function with calling convention '%s'", |
| 1686 | | buf_ptr(&fn_type_id.return_type->name), |
| 1687 | | calling_convention_name(fn_type_id.cc))); |
| 1688 | | return g->builtin_types.entry_invalid; |
| 1689 | | } |
| 1690 | | return get_generic_fn_type(g, &fn_type_id); |
| 1691 | 1683 | case TypeTableEntryIdUnreachable: |
| 1692 | 1684 | case TypeTableEntryIdVoid: |
| 1693 | 1685 | case TypeTableEntryIdBool: |