diff options
| author | Bradley Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-11-24 08:09:02 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-24 08:09:02 +1100 |
| commit | a5f43fd98dc7b853cf6c198a51d424886b66ea42 (patch) | |
| tree | 1ae9fb5129175f68f2d11e8f98c1b7a0553ea9b5 /src | |
| parent | 74396f71ea35e313e6b2585db913e69cca14146e (diff) | |
| parent | e2d38ac6415c09366dd934b75f0dd557057855f5 (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.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 { |