diff options
| -rw-r--r-- | src/server/analysis.odin | 2 | ||||
| -rw-r--r-- | tests/hover_test.odin | 15 |
2 files changed, 15 insertions, 2 deletions
diff --git a/src/server/analysis.odin b/src/server/analysis.odin index 9d93f39..1b14497 100644 --- a/src/server/analysis.odin +++ b/src/server/analysis.odin @@ -1488,8 +1488,6 @@ resolve_soa_selector_field :: proc( resolve_selector_expression :: proc(ast_context: ^AstContext, node: ^ast.Selector_Expr) -> (Symbol, bool) { selector := Symbol{} if ok := internal_resolve_type_expression(ast_context, node.expr, &selector); ok { - ast_context.use_locals = false - set_ast_package_from_symbol_scoped(ast_context, selector) symbol := Symbol{} 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 |