diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2026-01-24 09:27:19 +1100 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2026-01-24 09:27:19 +1100 |
| commit | 00955b4ddf08c2a87a53af72b25c0108f862d95e (patch) | |
| tree | 9f80c07e33cf7beba915511c47c6b2c1cefece02 /tests/hover_test.odin | |
| parent | e21db4a48e04e558e0aa3a46e0bd7668168714e1 (diff) | |
Correctly resolve hover info for poly types in where clauses for procs
Diffstat (limited to 'tests/hover_test.odin')
| -rw-r--r-- | tests/hover_test.odin | 20 |
1 files changed, 20 insertions, 0 deletions
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 |