aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2026-01-15 18:42:09 +1100
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2026-01-15 18:42:09 +1100
commit105bc8b8eacd255cc598d251bfe091f7bf169016 (patch)
tree43afd25d366f0f3d4153447c0841c11efa91a00f /tests
parent03d564b758d8c3942bcea7dc1eff6ad8211b71ea (diff)
Correct hover info for indexed soa pointers
Diffstat (limited to 'tests')
-rw-r--r--tests/hover_test.odin18
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