diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-07-12 20:07:53 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-07-13 06:50:19 -0400 |
| commit | 3dbcf0183f6523d89c85bbf3324bc389ca7707a5 (patch) | |
| tree | 555a2322de7fb017baf78d8c850fe568fdabaceb /tests | |
| parent | bbb3bc903e241e63e36552d6707b41eab926b419 (diff) | |
Fix issue resolving comparison binary expr
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/hover_test.odin | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/hover_test.odin b/tests/hover_test.odin index af9990e..a69b494 100644 --- a/tests/hover_test.odin +++ b/tests/hover_test.odin @@ -2559,6 +2559,29 @@ ast_hover_struct_field_should_show_docs_and_comments_matrix :: proc(t: ^testing. } test.expect_hover( t, &source, "Foo.bar: matrix[4,5]int // bar comment\n bar docs") } + +@(test) +ast_hover_variable_from_comparison :: proc(t: ^testing.T) { + source := test.Source { + main = `package test + + Foo :: enum { + A, + B, + } + + Bar :: struct { + foo: Foo, + } + + main :: proc() { + bar: Bar + b{*}azz := bar.bar == .A + } + `, + } + test.expect_hover( t, &source, "test.bazz: bool") +} /* Waiting for odin fix |