We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Elision does not seem to match variadic parameters - which also use the ... notation. Below is a simple repro.
...
Patch file (goal is to swap order of first 2 parameters only):
@@ var first expression var second expression @@ -bar(second, first,...) +bar(first, second,...)
Input:
func foo() { bar("b", "a") bar("b", "a", "c") bar("b", "a", []string{"c"}...) }
Output:
func foo() { bar("a", "b") bar("a", "b", "c") // Expected: bar("a", "b", []string{"c"}...) bar("b", "a", []string{"c"}...) }
The text was updated successfully, but these errors were encountered:
Thanks for the report @aws5295! We'll work on addressing this.
(Internal tracking task: GO-786.)
Sorry, something went wrong.
No branches or pull requests
Elision does not seem to match variadic parameters - which also use the
...
notation.Below is a simple repro.
Patch file (goal is to swap order of first 2 parameters only):
Input:
Output:
The text was updated successfully, but these errors were encountered: