diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-20 14:13:51 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-20 14:13:51 -0400 |
| commit | ff183dc411ae426c9a3bc9234e06726bd9b40097 (patch) | |
| tree | c8811787f2d00891409ea0d7d843020eff6ba6dd /tests/hover_test.odin | |
| parent | 5e66e3641150f7290375e2e61ede00a9adb55508 (diff) | |
Improve resolving types of binary expressions
Diffstat (limited to 'tests/hover_test.odin')
| -rw-r--r-- | tests/hover_test.odin | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/hover_test.odin b/tests/hover_test.odin index 1a94c89..ac6b44a 100644 --- a/tests/hover_test.odin +++ b/tests/hover_test.odin @@ -4315,6 +4315,16 @@ ast_hover_multi_pointer_slice_range :: proc(t: ^testing.T) { } test.expect_hover(t, &source, "test.bar: []int") } + +@(test) +ast_hover_binary_expr_with_type :: proc(t: ^testing.T) { + source := test.Source { + main = `package test + F{*}OO :: 1 + u8(2) + `, + } + test.expect_hover(t, &source, "test.FOO: u8") +} /* Waiting for odin fix |