aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-10-27 20:02:38 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-10-27 20:02:38 -0400
commit62815da83221944cc45a01c11637bf2331773408 (patch)
treee6aa35fa556fb093fa3be3c79550d38a91cee9bb /tests
parentd7f351f768a295ce74c91f67993e1df24b082bba (diff)
Correctly display hover info for bitset with underlying type
Diffstat (limited to 'tests')
-rw-r--r--tests/hover_test.odin10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/hover_test.odin b/tests/hover_test.odin
index e51d116..bd7abe6 100644
--- a/tests/hover_test.odin
+++ b/tests/hover_test.odin
@@ -5312,6 +5312,16 @@ ast_hover_proc_return_with_enum :: proc(t: ^testing.T) {
}
test.expect_hover(t, &source, "test.foo :: proc() -> enum{A, B}")
}
+
+@(test)
+ast_hover_proc_arg_generic_bit_set :: proc(t: ^testing.T) {
+ source := test.Source {
+ main = `package test
+ f{*}oo :: proc($T: typeid/bit_set[$F; $E]) {}
+ `,
+ }
+ test.expect_hover(t, &source, "test.foo :: proc($T: typeid/bit_set[$F; $E])")
+}
/*
Waiting for odin fix