aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-11-05 20:34:30 -0500
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-11-05 20:44:09 -0500
commit2845fac4107f986d6fc598f49375cbe1cbadb295 (patch)
tree046500c15239bc577b9185bf71ebe4459c62573b /tests
parent00a283c5d5305234a28f3eab3a0d1f150f8782c7 (diff)
Fix resolving array selectors with local types
Diffstat (limited to 'tests')
-rw-r--r--tests/hover_test.odin15
1 files changed, 15 insertions, 0 deletions
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