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 /tests/hover_test.odin | |
| parent | 74396f71ea35e313e6b2585db913e69cca14146e (diff) | |
Correct the resultant type for bitshifts
Diffstat (limited to 'tests/hover_test.odin')
| -rw-r--r-- | tests/hover_test.odin | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/hover_test.odin b/tests/hover_test.odin index 282ffb7..06d3dce 100644 --- a/tests/hover_test.odin +++ b/tests/hover_test.odin @@ -5703,6 +5703,19 @@ ast_hover_function_call_with_parens :: proc(t: ^testing.T) { } test.expect_hover(t, &source, "test.bar: bool") } + +@(test) +ast_hover_bitshift_integer_type :: proc(t: ^testing.T) { + source := test.Source { + main = `package test + main :: proc() { + foo: u16 + b{*}ar := 6 << foo + } + `, + } + test.expect_hover(t, &source, "test.bar: int") +} /* Waiting for odin fix |