From e0dbda3ab7082551c5b1ccd06bcd76f1d3f437ba Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Sat, 4 Oct 2025 08:06:26 -0400 Subject: Add proc inlining information for generic procs --- tests/hover_test.odin | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'tests') diff --git a/tests/hover_test.odin b/tests/hover_test.odin index f2ff18c..796787c 100644 --- a/tests/hover_test.odin +++ b/tests/hover_test.odin @@ -5135,6 +5135,22 @@ ast_hover_parapoly_proc_slice_param_return :: proc(t: ^testing.T) { } test.expect_hover(t, &source, "test.it: test.Iter(string)") } + +@(test) +ast_hover_generic_proc_with_inlining :: proc(t: ^testing.T) { + source := test.Source { + main = `package test + Bar :: struct{} + + foo :: #force_inline proc(data: $T) {} + + main :: proc() { + f{*}oo(Bar{}) + } + `, + } + test.expect_hover(t, &source, "test.foo :: #force_inline proc(data: $T)") +} /* Waiting for odin fix -- cgit v1.2.3