diff options
author | Russ Cox <rsc@golang.org> | 2013-03-15 15:24:13 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2013-03-15 15:24:13 -0400 |
commit | 615f289209d08316da2c609f843bd20201ce2275 (patch) | |
tree | b64e4225d55267a71e2cecc85743bc5fb9baec16 /test/func1.go | |
parent | 09cd13c51dabd709e79329a9b8591fc4d15b6f3f (diff) | |
download | go-git-615f289209d08316da2c609f843bd20201ce2275.tar.gz |
cmd/gc: ensure unique parameter and result names in function types
In addition to fixing the bug, the check is now linear instead of quadratic.
Fixes #4469.
R=ken2
CC=golang-dev
https://golang.org/cl/7773047
Diffstat (limited to 'test/func1.go')
-rw-r--r-- | test/func1.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/func1.go b/test/func1.go index c89f7ff2ea..fb6f56184f 100644 --- a/test/func1.go +++ b/test/func1.go @@ -14,6 +14,6 @@ func f1(a int) (int, float32) { } -func f2(a int) (a int, b float32) { // ERROR "redeclared|definition" +func f2(a int) (a int, b float32) { // ERROR "duplicate argument a|definition" return 8, 8.0 } |