aboutsummaryrefslogtreecommitdiff
path: root/tests/hover_test.odin
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-08-20 15:25:54 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-08-20 15:29:52 -0400
commitaec4e645f21271ecc4c90a65b56ea702fa88aba8 (patch)
tree137baabe28d900e5f85a4c9e5e08ff1bfbd398ed /tests/hover_test.odin
parent2aa0e380f2fc28a464c1a62d7cdc742b12783125 (diff)
Correct hover info for soa pointers
Diffstat (limited to 'tests/hover_test.odin')
-rw-r--r--tests/hover_test.odin16
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