You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This trailing comma (or an enclosing interface) is required to avoid a parsing ambiguity for generic types, but it's not needed for generic functions.
While not really a release blocker we should probably fix this before the release to avoid potential unnecessary code churn due to formatting changes down the road.
… func type param lists
Type parameter lists are not ambiguous for function declarations in the
way that they are ambiguous for type declarations. Avoid printing an
extra comma to disambiguate.
Fixes#51548
Change-Id: I8ca2b21e271982013653b9e220f92ee74f577ba2
Reviewed-on: https://go-review.googlesource.com/c/go/+/390914
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
(cherry picked from commit 0add064)
Reviewed-on: https://go-review.googlesource.com/c/go/+/390957
Trust: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
Given
gofmt
introduces a trailing comma:This trailing comma (or an enclosing interface) is required to avoid a parsing ambiguity for generic types, but it's not needed for generic functions.
While not really a release blocker we should probably fix this before the release to avoid potential unnecessary code churn due to formatting changes down the road.
cc: @findleyr
The text was updated successfully, but these errors were encountered: