Cannot pass variadic method expression with variadic of generic type #49516
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
release-blocker
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
With the latest gotip
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
This code works, even with generics:
func pushN(push func(*Q[int], int), n int)
However, if I change the
Push
to be variadic onT
:I get
This works with a non-generic type, of course:
func pushN(push func(*Q, ...int), n int)
The text was updated successfully, but these errors were encountered: