From 01e247bb7a4142713fba8ac2c60fb0085816078d Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Tue, 16 Sep 2025 18:14:01 -0400 Subject: Correct implicit selector expressions within binary expressions --- tests/hover_test.odin | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'tests') diff --git a/tests/hover_test.odin b/tests/hover_test.odin index 3f6bb3b..402e38a 100644 --- a/tests/hover_test.odin +++ b/tests/hover_test.odin @@ -4802,6 +4802,25 @@ ast_hover_proc_group_with_generic_type_from_proc_param :: proc(t: ^testing.T) { } test.expect_hover(t, &source, "test.append: proc(array: ^$T/[dynamic]$E, arg: E)") } + +@(test) +ast_hover_enum_implicit_if_statement :: proc(t: ^testing.T) { + source := test.Source { + main = `package test + Foo :: enum { + A, + B, + } + + main :: proc() { + foo: Foo + if foo == .A{*} { + } + } + `, + } + test.expect_hover(t, &source, "test.Foo: .A") +} /* Waiting for odin fix -- cgit v1.2.3