diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2026-01-15 18:42:09 +1100 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2026-01-15 18:42:09 +1100 |
| commit | 105bc8b8eacd255cc598d251bfe091f7bf169016 (patch) | |
| tree | 43afd25d366f0f3d4153447c0841c11efa91a00f /tests | |
| parent | 03d564b758d8c3942bcea7dc1eff6ad8211b71ea (diff) | |
Correct hover info for indexed soa pointers
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/hover_test.odin | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/hover_test.odin b/tests/hover_test.odin index 8c39b0f..7cd2b24 100644 --- a/tests/hover_test.odin +++ b/tests/hover_test.odin @@ -5986,6 +5986,24 @@ ast_hover_proc_group_bitset :: proc(t: ^testing.T) { } test.expect_hover(t, &source, "test.Foo: .A") } + +@(test) +ast_hover_soa_struct_field_indexed :: proc(t: ^testing.T) { + source := test.Source { + main = `package test + Foo :: struct{} + + Bar :: struct { + foos: #soa[dynamic]Foo, + } + + bazz :: proc(bar: ^Bar, index: int) { + f{*}oo := &bar.foos[index] + } + `, + } + test.expect_hover(t, &source, "test.foo: #soa^#soa[dynamic]Foo") +} /* Waiting for odin fix |