aboutsummaryrefslogtreecommitdiff
path: root/test/func1.go
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2008-07-08 12:22:21 -0700
committerRob Pike <r@golang.org>2008-07-08 12:22:21 -0700
commit6810f39edf213a64d9c8a024413a53629ef82c7d (patch)
tree9c82175e9d591f7613f8ce319c943d88d7960994 /test/func1.go
parentc38391ad7b326ea5d572df26e6e98c149a3b85bd (diff)
downloadgo-6810f39edf213a64d9c8a024413a53629ef82c7d.tar.gz
go-6810f39edf213a64d9c8a024413a53629ef82c7d.zip
test update. also remove two duplicates
SVN=126336
Diffstat (limited to 'test/func1.go')
-rw-r--r--test/func1.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/func1.go b/test/func1.go
index 2f92c35b75..895fe94b8d 100644
--- a/test/func1.go
+++ b/test/func1.go
@@ -4,13 +4,15 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// does not compile and should not compile
+
package main
-func f1(a int) (int, float) { // BUG multiple return values must have names
+func f1(a int) (int, float) { // BUG (not caught by compiler): multiple return values must have names
return 7, 7.0;
}
-func f2(a int) (a int, b float) { // BUG return value names must be different from parameter names
+func f2(a int) (a int, b float) { // return value names must be different from parameter names
return 8, 8.0;
}