summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-10-07 17:12:35 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-10-07 17:12:35 -0400
commit46aec5fee0fc76c8ac84c95b2d52cb0608c8a396 (patch)
tree7f45bcb1c8bba8c877ed52663371973ad69ead4d /tests
parent60148ea7188b1c54a5d4ad028a8cc6c7471fdc62 (diff)
Correctly resolve implicit selectors within a binary expr within a call expr
Diffstat (limited to 'tests')
-rw-r--r--tests/hover_test.odin18
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