aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/hover_test.odin16
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