From 25dafecd9238317c1534012f183dc828417e3da9 Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Wed, 29 Oct 2025 05:19:04 -0400 Subject: Correctly resolve package and range of generic procs --- tests/hover_test.odin | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'tests') 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 -- cgit v1.2.3