testing: t.Helper() confused by generics #52237
Labels
FrozenDueToAge
generics
Issue is related to generics
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
release-blocker
Milestone
If you make a typed alias to a function, t.Helper() gets confused about where the error comes from.
What version of Go are you using (
go version
)?1.18
Does this issue reproduce with the latest release?
Yes.
What did you do?
https://go.dev/play/p/GOOGiEsdm_O
What did you expect to see?
What did you see instead?
By contrast, this works correctly:
The text was updated successfully, but these errors were encountered: