aboutsummaryrefslogtreecommitdiff
path: root/tests/hover_test.odin
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-10-08 05:40:15 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-10-08 05:40:15 -0400
commitbc83e2ccf93557322fcc0c7850fddfdd3123ca62 (patch)
tree15377b68eaf95ef58ccbe90d4b6f7308591ad99e /tests/hover_test.odin
parent4c35d28c47e082a3a7bb38cd0c98d6def71e9637 (diff)
Add missing / in typeid specialization documentation
Diffstat (limited to 'tests/hover_test.odin')
-rw-r--r--tests/hover_test.odin11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/hover_test.odin b/tests/hover_test.odin
index 08c6870..cffd779 100644
--- a/tests/hover_test.odin
+++ b/tests/hover_test.odin
@@ -5197,6 +5197,17 @@ ast_hover_enum_in_bitset_within_call_expr :: proc(t: ^testing.T) {
}
test.expect_hover(t, &source, "test.Foo: .A")
}
+
+@(test)
+ast_hover_typeid_with_specialization :: proc(t: ^testing.T) {
+ source := test.Source {
+ main = `package test
+
+ foo{*} :: proc($T: typeid/[]$E) {}
+ `,
+ }
+ test.expect_hover(t, &source, "test.foo :: proc($T: typeid/[]$E)")
+}
/*
Waiting for odin fix