From 65ccfcfb613513e404f37d344943a0b4e1bbe66d Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Tue, 23 Dec 2025 12:52:34 +1100 Subject: Fix completions for implicit selector proc args with default values --- tests/completions_test.odin | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'tests') diff --git a/tests/completions_test.odin b/tests/completions_test.odin index 1883032..3c34603 100644 --- a/tests/completions_test.odin +++ b/tests/completions_test.odin @@ -5216,3 +5216,25 @@ ast_completion_implicit_selector_binary_expr_proc_call :: proc(t: ^testing.T) { } test.expect_completion_labels(t, &source, "", {"A", "B", "C"}, {"X", "Y"}) } + +@(test) +ast_completion_proc_arg_default_enum_alias :: proc(t: ^testing.T) { + source := test.Source { + main = `package test + Foo :: enum { + A, + B, + } + + Bar :: Foo.A + + foo :: proc(f := Bar) {} + + main :: proc() { + foo(.{*}) + } + + `, + } + test.expect_completion_docs(t, &source, "", {"A", "B"}) +} -- cgit v1.2.3