From cf74b5f1133217a7454b8b932e818e891ebdefb0 Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Fri, 7 Nov 2025 05:15:36 -0500 Subject: Correctly resolve poly proc returns with #soa arrays --- tests/hover_test.odin | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'tests') diff --git a/tests/hover_test.odin b/tests/hover_test.odin index 20ef118..9a1f47e 100644 --- a/tests/hover_test.odin +++ b/tests/hover_test.odin @@ -5556,6 +5556,21 @@ ast_hover_array_of_array_type_x_elem_local_scope :: proc(t: ^testing.T) { } test.expect_hover(t, &source, "test.foo: [2]int") } + +@(test) +ast_hover_soa_poly_proc :: proc(t: ^testing.T) { + source := test.Source { + main = `package test + foo :: proc (arr: ^#soa[dynamic]$E) -> #soa^#soa[dynamic]E {} + + main :: proc() { + array: #soa[dynamic]struct{} + b{*}ar := foo(&array) + } + `, + } + test.expect_hover(t, &source, "test.bar: #soa^#soa[dynamic]struct{}") +} /* Waiting for odin fix -- cgit v1.2.3