-
Notifications
You must be signed in to change notification settings - Fork 17.6k
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
Combining explicit arguments with slice expansion doesn't work #22035
Labels
Comments
This is working as defined in the spec. The arguments to match a variadic argument may be a list of singletons or a slice followed by ..., not a combination. The main reason is to avoid ambiguity that can lead to errors. Working as intended. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Probably it is already discussed. But I didn't see description in Language Specification.
What version of Go are you using (
go version
)?go version go1.8 linux/amd64
play.golang.org
Does this issue reproduce with the latest release?
I think, yes.
What did you do?
https://play.golang.org/p/2Qm34TE-gn
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: