aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-09-16 18:02:47 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-09-16 18:02:47 -0400
commita31f9f0a97f543f51ca49a268f94c5078c9b9661 (patch)
treeac608f57e916ab461cc3c3334b76b9b53cf98ee0 /tests
parentf3223ddbaeed978da5de5d70667f146637b07293 (diff)
Correctly resolve generic types where the underlying identifier is a pointer
Diffstat (limited to 'tests')
-rw-r--r--tests/hover_test.odin20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/hover_test.odin b/tests/hover_test.odin
index 2d50c51..3f6bb3b 100644
--- a/tests/hover_test.odin
+++ b/tests/hover_test.odin
@@ -4782,6 +4782,26 @@ ast_hover_proc_group_variadic_args_with_generic_type :: proc(t: ^testing.T) {
}
test.expect_hover(t, &source, "test.append: proc(array: ^$T/[dynamic]$E, args: ..E)")
}
+
+@(test)
+ast_hover_proc_group_with_generic_type_from_proc_param :: proc(t: ^testing.T) {
+ source := test.Source {
+ main = `package test
+ append_elems :: proc(array: ^$T/[dynamic]$E, args: ..E) {}
+ append_elem :: proc(array: ^$T/[dynamic]$E, arg: E) {}
+
+ append :: proc {
+ append_elem,
+ append_elems,
+ }
+
+ foo :: proc(bars: ^[dynamic]string) {
+ app{*}end(bars, "test")
+ }
+ `,
+ }
+ test.expect_hover(t, &source, "test.append: proc(array: ^$T/[dynamic]$E, arg: E)")
+}
/*
Waiting for odin fix