mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-30 18:02:02 +00:00
Fix #4126
This commit is contained in:
@@ -3782,10 +3782,10 @@ gb_internal void check_binary_expr(CheckerContext *c, Operand *x, Ast *node, Typ
|
||||
// NOTE(bill): Allow comparisons between types
|
||||
if (is_ise_expr(be->left)) {
|
||||
// Evalute the right before the left for an '.X' expression
|
||||
check_expr_or_type(c, y, be->right, type_hint);
|
||||
check_expr_or_type(c, y, be->right, nullptr /* ignore type hint */);
|
||||
check_expr_or_type(c, x, be->left, y->type);
|
||||
} else {
|
||||
check_expr_or_type(c, x, be->left, type_hint);
|
||||
check_expr_or_type(c, x, be->left, nullptr /* ignore type hint */);
|
||||
check_expr_or_type(c, y, be->right, x->type);
|
||||
}
|
||||
bool xt = x->mode == Addressing_Type;
|
||||
|
||||
Reference in New Issue
Block a user