diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-20 15:25:54 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-20 15:29:52 -0400 |
| commit | aec4e645f21271ecc4c90a65b56ea702fa88aba8 (patch) | |
| tree | 137baabe28d900e5f85a4c9e5e08ff1bfbd398ed /tests/hover_test.odin | |
| parent | 2aa0e380f2fc28a464c1a62d7cdc742b12783125 (diff) | |
Correct hover info for soa pointers
Diffstat (limited to 'tests/hover_test.odin')
| -rw-r--r-- | tests/hover_test.odin | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/hover_test.odin b/tests/hover_test.odin index ac6b44a..e50c3c2 100644 --- a/tests/hover_test.odin +++ b/tests/hover_test.odin @@ -4325,6 +4325,22 @@ ast_hover_binary_expr_with_type :: proc(t: ^testing.T) { } test.expect_hover(t, &source, "test.FOO: u8") } + +@(test) +ast_hover_soa_pointer_field_variable :: proc(t: ^testing.T) { + source := test.Source { + main = `package test + + main :: proc() { + Shape :: struct{a, b:int} + ptr: #soa^#soa[]Shape + + a{*} := ptr.a + } + `, + } + test.expect_hover(t, &source, "test.a: int") +} /* Waiting for odin fix |