aboutsummaryrefslogtreecommitdiff
path: root/tests/hover_test.odin
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hover_test.odin')
-rw-r--r--tests/hover_test.odin30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/hover_test.odin b/tests/hover_test.odin
index 5dc6c91..35c2c4f 100644
--- a/tests/hover_test.odin
+++ b/tests/hover_test.odin
@@ -6075,6 +6075,36 @@ ast_hover_poly_proc_passthrough :: proc(t: ^testing.T) {
}
test.expect_hover(t, &source, "test.value: int")
}
+
+@(test)
+ast_hover_parapoly_overloaded_proc_with_bitfield :: proc(t: ^testing.T) {
+ source := test.Source {
+ main = `package test
+ Entry :: struct($T, $H: typeid) {
+ handle: H,
+ }
+
+ SmallHandle :: bit_field int {
+ valid: bool | 1,
+ generation: int | 7,
+ index: int | 24,
+ }
+
+ make :: proc {
+ makeEntry,
+ }
+
+ makeEntry :: proc($T: typeid/Entry($D, $H), handle: H) -> (entry: T) {
+ return
+ }
+
+ main :: proc() {
+ e{*}ntry := make(Entry(int, SmallHandle), SmallHandle{})
+ }
+ `,
+ }
+ test.expect_hover(t, &source, "test.entry: test.Entry(int, SmallHandle)")
+}
/*
Waiting for odin fix