| ... | ... | @@ -2902,6 +2902,16 @@ static TypeTableEntry *analyze_bool_bin_op_expr(CodeGen *g, ImportTableEntry *im |
| 2902 | 2902 | } else if (resolved_type->id == TypeTableEntryIdPureError) { |
| 2903 | 2903 | bool are_equal = op1_val->data.x_err.err == op2_val->data.x_err.err; |
| 2904 | 2904 | |
| 2905 | if (bin_op_type == BinOpTypeCmpEq) { |
| 2906 | answer = are_equal; |
| 2907 | } else if (bin_op_type == BinOpTypeCmpNotEq) { |
| 2908 | answer = !are_equal; |
| 2909 | } else { |
| 2910 | zig_unreachable(); |
| 2911 | } |
| 2912 | } else if (resolved_type->id == TypeTableEntryIdFn) { |
| 2913 | bool are_equal = (op1_val->data.x_fn == op2_val->data.x_fn); |
| 2914 | |
| 2905 | 2915 | if (bin_op_type == BinOpTypeCmpEq) { |
| 2906 | 2916 | answer = are_equal; |
| 2907 | 2917 | } else if (bin_op_type == BinOpTypeCmpNotEq) { |