aboutsummaryrefslogtreecommitdiff
path: root/tests/hover_test.odin
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hover_test.odin')
-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