diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-11-05 20:34:30 -0500 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-11-05 20:44:09 -0500 |
| commit | 2845fac4107f986d6fc598f49375cbe1cbadb295 (patch) | |
| tree | 046500c15239bc577b9185bf71ebe4459c62573b /tests | |
| parent | 00a283c5d5305234a28f3eab3a0d1f150f8782c7 (diff) | |
Fix resolving array selectors with local types
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/hover_test.odin | 15 |
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 |