-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
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"}...)
}dschofie, KevinXing and MarvinJWendt
Metadata
Metadata
Assignees
Labels
No labels