diff options
| author | Bradley Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-10-07 17:21:30 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-07 17:21:30 -0400 |
| commit | 467fab2460a7fbb7f2a261cd7b314fa20b91cad1 (patch) | |
| tree | 7f45bcb1c8bba8c877ed52663371973ad69ead4d /tests | |
| parent | 60148ea7188b1c54a5d4ad028a8cc6c7471fdc62 (diff) | |
| parent | 46aec5fee0fc76c8ac84c95b2d52cb0608c8a396 (diff) | |
Merge pull request #1083 from BradLewis/fix/implicit-selector-binary-expr-within-call-expr
Correctly resolve implicit selectors within a binary expr within a call expr
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/hover_test.odin | 18 |
1 files changed, 18 insertions, 0 deletions
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 |