aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-10-29 05:19:04 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-10-29 23:31:33 -0400
commit25dafecd9238317c1534012f183dc828417e3da9 (patch)
tree0fef04e1dba79e2b6f41a5f3cef7c8e08c78607f /tests
parent9854c3ec2786498c94a341183c6b901af375826a (diff)
Correctly resolve package and range of generic procs
Diffstat (limited to 'tests')
-rw-r--r--tests/hover_test.odin21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/hover_test.odin b/tests/hover_test.odin
index 391ff60..2f33d73 100644
--- a/tests/hover_test.odin
+++ b/tests/hover_test.odin
@@ -5347,6 +5347,27 @@ ast_hover_quaternion_literal :: proc(t: ^testing.T) {
}
test.expect_hover(t, &source, "test.foo: quaternion256")
}
+
+@(test)
+ast_hover_parapoly_other_package :: proc(t: ^testing.T) {
+ packages := make([dynamic]test.Package, context.temp_allocator)
+
+ append(&packages, test.Package{pkg = "my_package", source = `package my_package
+ // Docs!
+ bar :: proc(_: $T) {}
+ `})
+ source := test.Source {
+ main = `package test
+ import "my_package"
+
+ main :: proc() {
+ my_package.ba{*}r("test")
+ }
+ `,
+ packages = packages[:],
+ }
+ test.expect_hover(t, &source, "my_package.bar :: proc(_: $T)")
+}
/*
Waiting for odin fix