Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/compile: clearer error message involving variadic calls #41440

Closed
mdempsky opened this issue Sep 16, 2020 · 1 comment
Closed

cmd/compile: clearer error message involving variadic calls #41440

mdempsky opened this issue Sep 16, 2020 · 1 comment
Labels
FrozenDueToAge help wanted NeedsFix The path to resolution is known, but the work has not been done.

Comments

@mdempsky
Copy link
Member

mdempsky commented Sep 16, 2020

A user tried writing (simplified):

var args []string
exec.Command(args...)

and was confused because the error message says:

have ([]string...)
want (string, ...string)

It would probably be clearer if we instead reported:

have (...string)
want (string, ...string)

/cc @cuonglm @muhlemmer if either of you are interested in looking into this.

@mdempsky mdempsky added help wanted NeedsFix The path to resolution is known, but the work has not been done. labels Sep 16, 2020
@gopherbot
Copy link

Change https://golang.org/cl/255241 mentions this issue: cmd/compile: make error message involving variadic calls clearer

@golang golang locked and limited conversation to collaborators Sep 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge help wanted NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

2 participants