diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-10-11 04:28:28 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-10-11 04:28:28 -0400 |
| commit | 3e6c49805a003e224b709bfa15d42f3f1081db11 (patch) | |
| tree | a768954471c4d2e3ff185e5d52d44615e3b4d922 /tests/hover_test.odin | |
| parent | ed91e4409c4605baa58d3ab333d9d093a112212c (diff) | |
Resolve proc groups called with an implicit selector
Diffstat (limited to 'tests/hover_test.odin')
| -rw-r--r-- | tests/hover_test.odin | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/hover_test.odin b/tests/hover_test.odin index cffd779..6461621 100644 --- a/tests/hover_test.odin +++ b/tests/hover_test.odin @@ -5208,6 +5208,32 @@ ast_hover_typeid_with_specialization :: proc(t: ^testing.T) { } test.expect_hover(t, &source, "test.foo :: proc($T: typeid/[]$E)") } + +@(test) +ast_hover_proc_group_with_enum_arg :: proc(t: ^testing.T) { + source := test.Source { + main = `package test + Foo :: enum { + A, + B, + C, + } + + bar_none :: proc() {} + bar_foo :: proc(foo: Foo) {} + bar :: proc { + bar_none, + bar_foo, + } + + main :: proc() { + b{*}ar(.B) + } + + `, + } + test.expect_hover(t, &source, "test.bar :: proc(foo: Foo)") +} /* Waiting for odin fix |