diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-11-23 16:05:48 -0500 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-11-23 16:05:48 -0500 |
| commit | e2d38ac6415c09366dd934b75f0dd557057855f5 (patch) | |
| tree | 1ae9fb5129175f68f2d11e8f98c1b7a0553ea9b5 /src/server | |
| parent | 74396f71ea35e313e6b2585db913e69cca14146e (diff) | |
Correct the resultant type for bitshifts
Diffstat (limited to 'src/server')
| -rw-r--r-- | src/server/analysis.odin | 2 |
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 { |