-
Notifications
You must be signed in to change notification settings - Fork 18k
erroneous error: "to pass 'x' as ...interface { }, use 'x...'" #1297
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
Labels
Comments
Here is a self-contained package (no imports) showing the same problem: package P func f(x ...int) { g(x) } func g(x ...interface{}){} test.go:2: to pass 'x' as ...interface { }, use 'x...' test.go:2: cannot use x (type []int) as type []interface { } in function argument (both 6g and gccgo show an error). This may be a left-over error message to ease transition to the new rules. Labels changed: added compilerbug. Owner changed to [email protected]. Status changed to Accepted. |
This seems to have been fixed in http://code.google.com/p/go/source/detail?r=e17a171b737b |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: