From 236f2f1f684577a8bf7daf1f0decfd2686755d05 Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Sat, 6 Dec 2025 22:39:46 -0500 Subject: Fix selector completions for global constant declarations --- tests/completions_test.odin | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'tests') diff --git a/tests/completions_test.odin b/tests/completions_test.odin index 72dcb86..5ab4181 100644 --- a/tests/completions_test.odin +++ b/tests/completions_test.odin @@ -5130,3 +5130,21 @@ ast_completion_implicit_selector_binary_expr :: proc(t: ^testing.T) { } test.expect_completion_docs(t, &source, "", {"A", "B"}) } + +@(test) +ast_completion_global_selector_from_local_scope :: proc(t: ^testing.T) { + source := test.Source { + main = `package test + Foo :: struct { + foo: int, + } + + FOO :: Foo{} + + main :: proc() { + FOO.{*} + } + `, + } + test.expect_completion_docs(t, &source, "", {"Foo.foo: int"}) +} -- cgit v1.2.3