diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-10-04 08:06:26 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-10-04 08:06:26 -0400 |
| commit | e0dbda3ab7082551c5b1ccd06bcd76f1d3f437ba (patch) | |
| tree | 177dfe6d6ecc15816444766cf2fca27b9e4bdc1e /tests | |
| parent | b85caeb82b86af897113eff551d37616d4e8e440 (diff) | |
Add proc inlining information for generic procs
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/hover_test.odin | 16 |
1 files changed, 16 insertions, 0 deletions
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 |