From 46aec5fee0fc76c8ac84c95b2d52cb0608c8a396 Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Tue, 7 Oct 2025 17:12:35 -0400 Subject: Correctly resolve implicit selectors within a binary expr within a call expr --- tests/hover_test.odin | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'tests') diff --git a/tests/hover_test.odin b/tests/hover_test.odin index 341b641..08c6870 100644 --- a/tests/hover_test.odin +++ b/tests/hover_test.odin @@ -5179,6 +5179,24 @@ ast_hover_using_import_statement_name_conflict :: proc(t: ^testing.T) { } test.expect_hover(t, &source, "my_package.Bar :: struct {\n\tb: string,\n}") } + +@(test) +ast_hover_enum_in_bitset_within_call_expr :: proc(t: ^testing.T) { + source := test.Source { + main = `package test + Foo :: enum {A, B} + Foos :: bit_set[Foo] + + bar :: proc(a: bool) {} + + main :: proc() { + foos: Foos + bar(.A{*} in foos) + } + `, + } + test.expect_hover(t, &source, "test.Foo: .A") +} /* Waiting for odin fix -- cgit v1.2.3