From 2845fac4107f986d6fc598f49375cbe1cbadb295 Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Wed, 5 Nov 2025 20:34:30 -0500 Subject: Fix resolving array selectors with local types --- tests/hover_test.odin | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'tests/hover_test.odin') diff --git a/tests/hover_test.odin b/tests/hover_test.odin index 17f7c14..20ef118 100644 --- a/tests/hover_test.odin +++ b/tests/hover_test.odin @@ -5541,6 +5541,21 @@ ast_hover_array_elem_local_scope :: proc(t: ^testing.T) { } test.expect_hover(t, &source, "test.foo: int") } + +@(test) +ast_hover_array_of_array_type_x_elem_local_scope :: proc(t: ^testing.T) { + source := test.Source { + main = `package test + main :: proc() { + Array :: [2]int + Array_2 :: [2]Array + array_2: Array_2 + f{*}oo := array_2.x + } + `, + } + test.expect_hover(t, &source, "test.foo: [2]int") +} /* Waiting for odin fix -- cgit v1.2.3