From aec4e645f21271ecc4c90a65b56ea702fa88aba8 Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Wed, 20 Aug 2025 15:25:54 -0400 Subject: Correct hover info for soa pointers --- tests/hover_test.odin | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'tests/hover_test.odin') 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 -- cgit v1.2.3