cmd/vet: incorrectly errors when importing parameterized function in a test #47915
Labels
Analysis
Issues related to static analysis (vet, x/tools/go/analysis)
FrozenDueToAge
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
No, using generics on gotip.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I created a repo here: https://github.com/jakecoffman/generics
Create a package
math
withmin.go
as follows:Outside of package
math
create a test that imports the parameterized Min:Then run
gotip test ./...
.What did you expect to see?
A passing test
What did you see instead?
It works outside of a test, or in a test in the same module as the definition of the parameterized function.
The text was updated successfully, but these errors were encountered: