diff options
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 895fe94b8..2c767d21d 100644 --- a/test/func1.go +++ b/test/func1.go @@ -13,6 +13,6 @@ func f1(a int) (int, float) { // BUG (not caught by compiler): multiple return } -func f2(a int) (a int, b float) { // return value names must be different from parameter names +func f2(a int) (a int, b float) { // ERROR "redeclared|definition" return 8, 8.0; } |