From aeff7ec9e52430e055d42d24dee2b10eb3664b20 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 15 Mar 2013 15:24:13 -0400 Subject: 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 --- test/func1.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/func1.go') 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 } -- cgit v1.2.1