You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cmd/compile, go/types: the "have" section with variadic argument show slice and not variadic in "not-enough/too-many values" compiler error message #70150
./prog.go:7:29: not enough arguments in call to vari
have (context.Context, []int)
want (context.Context, string, ...int)
./prog.go:8:41: too many arguments in call to vari
have (context.Context, string, string, []int)
want (context.Context, string, ...int)
What did you expect to see?
./prog.go:7:29: not enough arguments in call to vari
have (context.Context, ...int)
want (context.Context, string, ...int)
./prog.go:8:41: too many arguments in call to vari
have (context.Context, string, string, ...int)
want (context.Context, string, ...int)
Activity
gabyhelp commentedon Oct 31, 2024
Related Issues and Documentation
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
gopherbot commentedon Nov 1, 2024
Change https://go.dev/cl/624335 mentions this issue:
cmd/compile: print the variadic argument in variadic form in compiler error messagefengyoulin commentedon Nov 1, 2024
I have a fix, PTAL.
go/types, types2: print variadic argument in dotdotdot form in error …