aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBradley Lewis <22850972+BradLewis@users.noreply.github.com>2025-11-24 08:09:02 +1100
committerGitHub <noreply@github.com>2025-11-24 08:09:02 +1100
commita5f43fd98dc7b853cf6c198a51d424886b66ea42 (patch)
tree1ae9fb5129175f68f2d11e8f98c1b7a0553ea9b5 /src
parent74396f71ea35e313e6b2585db913e69cca14146e (diff)
parente2d38ac6415c09366dd934b75f0dd557057855f5 (diff)
Merge pull request #1190 from BradLewis/fix/bitshift-result-types
Correct the resultant type for bitshifts
Diffstat (limited to 'src')
-rw-r--r--src/server/analysis.odin2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/analysis.odin b/src/server/analysis.odin
index 723ec85..80370d9 100644
--- a/src/server/analysis.odin
+++ b/src/server/analysis.odin
@@ -3113,6 +3113,8 @@ resolve_binary_expression :: proc(ast_context: ^AstContext, binary: ^ast.Binary_
type = .Bool,
}
return symbol_a, true
+ case .Shl, .Shr:
+ return resolve_type_expression(ast_context, binary.left)
}
if expr, ok := binary.left.derived.(^ast.Binary_Expr); ok {