mirror of
https://github.com/odin-lang/Odin.git
synced 2026-07-26 09:11:47 +00:00
Fix ~(1 << x) type inference bug
This commit is contained in:
@@ -1168,7 +1168,7 @@ void check_stmt_internal(CheckerContext *ctx, Ast *node, u32 flags) {
|
||||
be->right = as->rhs[0];
|
||||
|
||||
check_expr(ctx, &lhs, as->lhs[0]);
|
||||
check_binary_expr(ctx, &rhs, &binary_expr, true);
|
||||
check_binary_expr(ctx, &rhs, &binary_expr, nullptr, true);
|
||||
if (rhs.mode == Addressing_Invalid) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user