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 | aeff7ec9e52430e055d42d24dee2b10eb3664b20 (patch) | |
tree | 96b1e33536c4a03499ebc52aae24f60ef84d5c1b /test/func1.go | |
parent | fe6186a0b3cbb941424215999027e8a14ad0b1c0 (diff) | |
download | go-aeff7ec9e52430e055d42d24dee2b10eb3664b20.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 issue 4469.
R=ken2
CC=golang-dev
https://codereview.appspot.com/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 c89f7ff2e..fb6f56184 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 } |