diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-10-29 05:19:04 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-10-29 23:31:33 -0400 |
| commit | 25dafecd9238317c1534012f183dc828417e3da9 (patch) | |
| tree | 0fef04e1dba79e2b6f41a5f3cef7c8e08c78607f /tests/hover_test.odin | |
| parent | 9854c3ec2786498c94a341183c6b901af375826a (diff) | |
Correctly resolve package and range of generic procs
Diffstat (limited to 'tests/hover_test.odin')
| -rw-r--r-- | tests/hover_test.odin | 21 |
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 |