diff options
Diffstat (limited to 'tests/hover_test.odin')
| -rw-r--r-- | tests/hover_test.odin | 19 |
1 files changed, 19 insertions, 0 deletions
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 |