From 00955b4ddf08c2a87a53af72b25c0108f862d95e Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:27:19 +1100 Subject: Correctly resolve hover info for poly types in where clauses for procs --- tests/hover_test.odin | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'tests/hover_test.odin') diff --git a/tests/hover_test.odin b/tests/hover_test.odin index 9929ee3..630f4d7 100644 --- a/tests/hover_test.odin +++ b/tests/hover_test.odin @@ -6004,6 +6004,26 @@ ast_hover_soa_struct_field_indexed :: proc(t: ^testing.T) { } test.expect_hover(t, &source, "test.foo: #soa^#soa[dynamic]Foo") } + +@(test) +ast_hover_proc_poly_params :: proc(t: ^testing.T) { + source := test.Source { + main = `package test + foo :: proc($T{*}: int) {} + `, + } + test.expect_hover(t, &source, "test.$T: int") +} + +@(test) +ast_hover_proc_poly_params_where_clause :: proc(t: ^testing.T) { + source := test.Source { + main = `package test + foo :: proc($T: int) where T{*} >= 0 {} + `, + } + test.expect_hover(t, &source, "test.$T: int") +} /* Waiting for odin fix -- cgit v1.2.3