Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/api: fix signatures like func(x, y, z int)
Fixes writing of function parameter, result lists which consist of multiple named or unnamed items with same type. Fixes #4011. R=golang-dev, bsiegert, bradfitz, rsc CC=golang-dev https://golang.org/cl/6475062
- Loading branch information
Showing
3 changed files
with
32 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
pkg p3, method (*ThirdBase) GoodPlayer() (int, int, int) | ||
pkg p3, func BadHop(int, int, int) (bool, bool, *ThirdBase, *ThirdBase, error) | ||
pkg p3, type ThirdBase struct |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package p3 | ||
|
||
type ThirdBase struct{} | ||
|
||
func (tb *ThirdBase) GoodPlayer() (i, j, k int) | ||
func BadHop(i, j, k int) (l, m bool, n, o *ThirdBase, err error) |